PluginProbe
Booking Calendar / 11.8.3
Booking Calendar v11.8.3
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
← All changes | core/wpbc-emails.php +4 -4 11.411.8.3 View file →
@@ -1,4 +1,4 @@
1 1 <?php
2 2 /**
3 3 * @version 1.1
4 4 * @package Booking Calendar
@@ -156,9 +156,9 @@
156 156 $pure_name = $matches[1];
157 157 $pure_email = $matches[2];
158 158 }
159 159 } else { // Check about correct format of email
160 - if( preg_match( '/([\w\.\-_]+)?\w+@[\w-_]+(\.\w+){1,}/im', $email_to_parse, $matches ) ) {
160 + if( preg_match( '/([\w\.\-_]+)?\w+@[\w\-_]+(\.\w+){1,}/im', $email_to_parse, $matches ) ) {
161 161 $pure_email = $matches[0];
162 162 }
163 163 }
164 164
@@ -411,10 +411,10 @@
411 411 /* translators: 1: ... */
412 412 $fields[] = sprintf(__( 'Example #2: "%s" - English and French translation of some message' ,'booking'),'<code>Thank you for your booking.[lang=fr_FR]Je vous remercie de votre reservation.</code>');
413 413
414 414
415 - return $fields;
416 -}
415 + return (array) apply_filters( 'wpbc_email_help_shortcodes', $fields, $skip_shortcodes, $email_example );
416 +}
417 417
418 418
419 419 function wpbc_email_troubleshooting_help_notice(){
420 420
@@ -602,5 +602,5 @@
602 602 // Error that have no description. Its can be Empty Object like this: WP_Error Object( 'errors' => array(), 'error_data' => array() ), or NOT
603 603 // debuge( $wp_error_object );
604 604 }
605 605 }
606 -add_action('wpbc_email_sending_error', 'wpbc_email_sending_error', 10, 2);
606 +add_action('wpbc_email_sending_error', 'wpbc_email_sending_error', 10, 2);