Booking Calendar - Version 9.1.3

Version Description

  • Changes in all versions:
    • Fix. Changed "Booking" menu to "WPBC" (9.1.3.3)
    • Fix. Check consistency of translations. For situations, when translators made mistakes with missed symbols like %s or additional items. One of known errors was like "Unknown format specifier "t" in ../booking/core/admin/page-form-free.php:192" (9.1.3.2)
  • Changes in Personal / Business Small / Business Medium / Business Large / MultiUser versions:
    • Improvement. Added calendar icons to text field in search availability form (9.1.3.1) (Business Large, MultiUser)
Download this release

Release Info

Developer wpdevelop
Plugin Icon 128x128 Booking Calendar
Version 9.1.3
Comparing to
See all releases

Code changes from version 9.1.2 to 9.1.3

core/lib/wpdev-booking-class.php CHANGED
@@ -625,13 +625,25 @@ class wpdev_booking {
625
 
626
  if (isset($_GET['booking_hash'])) {
627
  $my_booking_id_type = apply_bk_filter('wpdev_booking_get_hash_to_id',false, $_GET['booking_hash'] );
628
- if ($my_booking_id_type != false)
629
- if ($my_booking_id_type[1]=='') {
630
- $my_result = __('Wrong booking hash in URL (probably expired)' ,'booking');
631
- if ( $is_echo ) echo $my_result;
632
- else return $my_result;
633
- return;
634
- }
 
 
 
 
 
 
 
 
 
 
 
 
635
  }
636
 
637
  if ($bk_type == '') {
625
 
626
  if (isset($_GET['booking_hash'])) {
627
  $my_booking_id_type = apply_bk_filter('wpdev_booking_get_hash_to_id',false, $_GET['booking_hash'] );
628
+ //FixIn: 9.1.3.2
629
+ $is_error = false;
630
+ if ( $my_booking_id_type !== false ) {
631
+ $my_edited_bk_id = $my_booking_id_type[0];
632
+ $my_boook_type = $my_booking_id_type[1];
633
+ if ( $my_boook_type == '' ) {
634
+ $is_error = __( 'Wrong booking hash in URL. Probably hash is expired.', 'booking' );
635
+ }
636
+ } else {
637
+ $is_error = __( 'Wrong booking hash in URL. Probably hash is expired.', 'booking' );
638
+ }
639
+
640
+ if ( false !== $is_error ) {
641
+ if ( $is_echo ) {
642
+ echo $is_error;
643
+ }
644
+ return $is_error;
645
+ }
646
+
647
  }
648
 
649
  if ($bk_type == '') {
core/sync/wpbc-gcal.php CHANGED
@@ -390,7 +390,7 @@ function wpbc_write_content_for_modal_import_gce() {
390
 
391
 
392
  }
393
- ?><div id="wpbc_gcal_import_events_modal" class="modal wpbc_popup_modal" tabindex="-1" role="dialog">
394
  <div class="modal-dialog modal-lg">
395
  <div class="modal-content">
396
  <div class="modal-header">
390
 
391
 
392
  }
393
+ ?><div id="wpbc_gcal_import_events_modal" class="modal wpbc_popup_modal wpbc_modal__import_google_calendar__section" tabindex="-1" role="dialog">
394
  <div class="modal-dialog modal-lg">
395
  <div class="modal-content">
396
  <div class="modal-header">
core/wpbc-functions.php CHANGED
@@ -1855,7 +1855,7 @@ $is_old = false;
1855
 
1856
  $update_count = wpbc_get_number_new_bookings();
1857
 
1858
- $title = __('Booking Calendar' ,'booking');
1859
  $update_title = ''// '<img src="'.WPBC_PLUGIN_URL .'/assets/img/icon-16x16.png" style="height: 16px;vertical-align: sub;" />&nbsp;'
1860
  . $title;
1861
 
@@ -3691,3 +3691,109 @@ function wpbc_get_booking_region_cities_list(){
3691
 
3692
  return $city;
3693
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1855
 
1856
  $update_count = wpbc_get_number_new_bookings();
1857
 
1858
+ $title = 'Booking Calendar';//__('Booking Calendar' ,'booking'); //FixIn: 9.1.3.3
1859
  $update_title = ''// '<img src="'.WPBC_PLUGIN_URL .'/assets/img/icon-16x16.png" style="height: 16px;vertical-align: sub;" />&nbsp;'
1860
  . $title;
1861
 
3691
 
3692
  return $city;
3693
  }
3694
+
3695
+
3696
+
3697
+ ////////////////////////////////////////////////////////////////////////////////
3698
+ // Support functions for CSV export
3699
+ ////////////////////////////////////////////////////////////////////////////////
3700
+
3701
+ /**
3702
+ * Get Path from request URL. E.g. 'my-category/file.csv' from url, like https://server.com/my-category/file.csv
3703
+ *
3704
+ * It can detect internal sub folder or WordPress, like http://server.com/my-website/
3705
+ *
3706
+ * @return false|string
3707
+ */
3708
+ function wpbc_get_request_url_path(){
3709
+
3710
+ if ( function_exists( 'wp_parse_url' ) ) {
3711
+ $my_parsed_url = wp_parse_url( $_SERVER['REQUEST_URI'] );
3712
+ } else {
3713
+ $my_parsed_url = @parse_url( $_SERVER['REQUEST_URI'] );
3714
+ }
3715
+
3716
+ if ( false === $my_parsed_url ) { // seriously malformed URLs, parse_url() may return FALSE.
3717
+ return false;
3718
+ }
3719
+
3720
+ $my_parsed_url_path = trim( $my_parsed_url['path'] );
3721
+ $my_parsed_url_path = trim( $my_parsed_url_path, '/' );
3722
+
3723
+
3724
+ // Check internal sub folder of WP, like http://server.com/my-website/[ ... LINK ...] //FixIn: 2.0.5.4
3725
+ if ( function_exists( 'wp_parse_url' ) ) {
3726
+ $wp_home_server_url = wp_parse_url( home_url() );
3727
+ } else {
3728
+ $wp_home_server_url = @parse_url( home_url() );
3729
+ }
3730
+
3731
+ if ( ( false !== $wp_home_server_url ) && ( ! empty( $wp_home_server_url['path'] ) ) ) { // seriously malformed URLs, parse_url() may return FALSE.
3732
+
3733
+ $server_url_sufix = trim( $wp_home_server_url[ 'path' ] ); // [path] => /my-website
3734
+ $server_url_sufix = trim( $server_url_sufix, '/' ); // my-website
3735
+
3736
+ if ( ! empty( $server_url_sufix ) ) {
3737
+
3738
+ $check_sufix = substr( $my_parsed_url_path, 0, strlen( $server_url_sufix ) );
3739
+
3740
+ if ( $check_sufix === $server_url_sufix ) {
3741
+
3742
+ $my_parsed_url_path = substr( $my_parsed_url_path, strlen( $server_url_sufix ) );
3743
+
3744
+ $my_parsed_url_path = trim( $my_parsed_url_path, '/' );
3745
+ }
3746
+ }
3747
+ } //End FixIn: 2.0.5.4
3748
+
3749
+ return $my_parsed_url_path;
3750
+ }
3751
+
3752
+
3753
+ /** Count the number of bytes of a given string.
3754
+ * Input string is expected to be ASCII or UTF-8 encoded.
3755
+ * Warning: the function doesn't return the number of chars
3756
+ * in the string, but the number of bytes.
3757
+ * See http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
3758
+ * for information on UTF-8.
3759
+ *
3760
+ * @param string $str The string to compute number of bytes
3761
+ *
3762
+ * @return The length in bytes of the given string.
3763
+ */
3764
+ function wpbc_get_bytes_from_str( $str ) {
3765
+ // STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT
3766
+ // Number of characters in string
3767
+ $strlen_var = strlen( $str );
3768
+
3769
+ $d = 0; // string bytes counter
3770
+
3771
+ // Iterate over every character in the string, escaping with a slash or encoding to UTF-8 where necessary
3772
+ for ( $c = 0; $c < $strlen_var; ++ $c ) {
3773
+ $ord_var_c = ord( $str[$c] ); //FixIn: 2.0.17.1
3774
+ switch ( true ) {
3775
+ case(($ord_var_c >= 0x20) && ($ord_var_c <= 0x7F)): // characters U-00000000 - U-0000007F (same as ASCII)
3776
+ $d ++;
3777
+ break;
3778
+ case(($ord_var_c & 0xE0) == 0xC0): // characters U-00000080 - U-000007FF, mask 110XXXXX
3779
+ $d += 2;
3780
+ break;
3781
+ case(($ord_var_c & 0xF0) == 0xE0): // characters U-00000800 - U-0000FFFF, mask 1110XXXX
3782
+ $d += 3;
3783
+ break;
3784
+ case(($ord_var_c & 0xF8) == 0xF0): // characters U-00010000 - U-001FFFFF, mask 11110XXX
3785
+ $d += 4;
3786
+ break;
3787
+ case(($ord_var_c & 0xFC) == 0xF8): // characters U-00200000 - U-03FFFFFF, mask 111110XX
3788
+ $d += 5;
3789
+ break;
3790
+ case(($ord_var_c & 0xFE) == 0xFC): // characters U-04000000 - U-7FFFFFFF, mask 1111110X
3791
+ $d += 6;
3792
+ break;
3793
+ default:
3794
+ $d ++;
3795
+ }
3796
+ }
3797
+ return $d;
3798
+ }
3799
+
core/wpbc-translation.php CHANGED
@@ -1502,7 +1502,49 @@ function wpbc_pot_to_php() {
1502
  }
1503
 
1504
 
 
1505
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1506
 
1507
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1508
  // Deprecated
@@ -1513,4 +1555,6 @@ function wpbc_pot_to_php() {
1513
  */
1514
  function wpbc_get_booking_locale() {
1515
  return wpbc_get_maybe_reloaded_booking_locale();
1516
- }
 
 
1502
  }
1503
 
1504
 
1505
+ // $translation = apply_filters( "gettext_{$domain}", $translation, $text, $domain );
1506
 
1507
+ //FixIn: 9.1.3.2
1508
+ /**
1509
+ * Check consistency of translations. For situations, when translators made mistakes with missed symbols like %s or additional items
1510
+ *
1511
+ * @param $translation
1512
+ * @param $text
1513
+ * @param $domain
1514
+ *
1515
+ * @return string
1516
+ */
1517
+ function wpbc_check_translations( $translation, $text, $domain ){
1518
+
1519
+ $check_symbols = array( 's', 'd', 'f', 'b', 'c', 'e', 'E', 'F', 'g', 'G', 'h', 'H', 'o', 'u', 'x', 'X' );
1520
+ foreach ( $check_symbols as $check_symbol ) {
1521
+ $text_count = substr_count( $text, '%' . $check_symbol );
1522
+ $translation_count = substr_count( $translation, '%' . $check_symbol );
1523
+
1524
+ if ( $text_count != $translation_count ) { // Number of %s in translation != number of %s in original text -- ERROR in translation
1525
+
1526
+ /*
1527
+ $booking_translation_errors = new WP_Error( 'booking_translation_consistency', 'Translation consistency error', array(
1528
+ 'text' => $text,
1529
+ 'translation' => $translation,
1530
+ 'symbol_error' => '%' . $check_symbol
1531
+ ) );
1532
+ */
1533
+ return $text;
1534
+ }
1535
+
1536
+ }
1537
+
1538
+ $text_count = substr_count( $text, '%' );
1539
+ $translation_count = substr_count( $translation, '%' );
1540
+ if ( $text_count != $translation_count ) {
1541
+ return $text;
1542
+ }
1543
+
1544
+ return $translation;
1545
+ }
1546
+ add_filter( 'gettext_booking', 'wpbc_check_translations', 1000, 3 ); // check Booking Calendar translation terms
1547
+ add_filter( 'gettext_booking-manager', 'wpbc_check_translations', 1000, 3 ); // check Booking Manager translation terms
1548
 
1549
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1550
  // Deprecated
1555
  */
1556
  function wpbc_get_booking_locale() {
1557
  return wpbc_get_maybe_reloaded_booking_locale();
1558
+ }
1559
+
1560
+
core/wpbc.php CHANGED
@@ -90,8 +90,8 @@ public static function init() {
90
  public function define_admin_menu(){
91
 
92
  $update_count = wpbc_get_number_new_bookings();
93
-
94
- $title = __('Booking', 'booking'); //'&#223;<span style="font-size:0.75em;">&#920;&#920;</span>&kgreen;&imath;&eng;'; // __('Booking', 'booking')
95
  $is_user_activated = apply_bk_filter('multiuser_is_current_user_active', true ); //FixIn: 6.0.1.17
96
 
97
  if ( ( $update_count > 0 ) && ( $is_user_activated ) ) {
90
  public function define_admin_menu(){
91
 
92
  $update_count = wpbc_get_number_new_bookings();
93
+ //FixIn: 9.1.3.3
94
+ $title = 'WPBC ';//__('Booking', 'booking'); //'&#223;<span style="font-size:0.75em;">&#920;&#920;</span>&kgreen;&imath;&eng;'; // __('Booking', 'booking')
95
  $is_user_activated = apply_bk_filter('multiuser_is_current_user_active', true ); //FixIn: 6.0.1.17
96
 
97
  if ( ( $update_count > 0 ) && ( $is_user_activated ) ) {
css/modal.css CHANGED
@@ -40,40 +40,40 @@
40
  }
41
 
42
  /* Modal Google Calendar Events Import */
43
- #wpbc_gcal_import_events_modal span.description {
44
  display:none;
45
  }
46
- #wpbc_gcal_import_events_modal #booking_gcal_events_until,
47
- #wpbc_gcal_import_events_modal .booking_gcal_events_until_offset,
48
- #wpbc_gcal_import_events_modal #booking_gcal_events_from,
49
- #wpbc_gcal_import_events_modal .booking_gcal_events_from_offset {
50
  float:left;
51
  margin:5px 0 0 0 !important;
52
  }
53
- #wpbc_gcal_import_events_modal .booking_gcal_events_from_offset label,
54
- #wpbc_gcal_import_events_modal .booking_gcal_events_until_offset label {
55
  margin: 0 10px;
56
  float:left;
57
  line-height: 29px;
58
  }
59
- #wpbc_gcal_import_events_modal input[type=text],
60
- #wpbc_gcal_import_events_modal select {
61
  height:28px;
62
  }
63
- #wpbc_gcal_import_events_modal th {
64
  vertical-align: middle;
65
  }
66
- #wpbc_gcal_import_events_modal th,
67
- #wpbc_gcal_import_events_modal td {
68
  border:none;
69
  }
70
- #wpbc_gcal_import_events_modal label {
71
  line-height: 28px;
72
  margin: 0;
73
  vertical-align: middle;
74
  }
75
- #wpbc_gcal_import_events_modal #booking_gcal_events_from_offset_type,
76
- #wpbc_gcal_import_events_modal #booking_gcal_events_until_offset_type {
77
  vertical-align: initial;
78
  }
79
 
@@ -86,53 +86,53 @@
86
  }
87
 
88
  /* Import Google Events Dialog*/
89
- #wpbc_gcal_import_events_modal .modal-dialog.modal-lg {
90
  width: auto;
91
  }
92
- #wpbc_gcal_import_events_modal label{
93
  font-weight: 600;
94
  font-size: 1.1em;
95
  width:100%;
96
  display:block;
97
  float:none;
98
  }
99
- #wpbc_gcal_import_events_modal input[type=text],
100
- #wpbc_gcal_import_events_modal select {
101
  display:block;
102
  width:100%;
103
  clear:both;
104
  height:34px;
105
  float:none !important;
106
  }
107
- #wpbc_gcal_import_events_modal th,
108
- #wpbc_gcal_import_events_modal td {
109
  display:block;
110
  padding:0;
111
  }
112
- #wpbc_gcal_import_events_modal td {
113
  margin-bottom: 15px;
114
  }
115
- #wpbc_gcal_import_events_modal #booking_gcal_events_until,
116
- #wpbc_gcal_import_events_modal .booking_gcal_events_until_offset,
117
- #wpbc_gcal_import_events_modal #booking_gcal_events_from,
118
- #wpbc_gcal_import_events_modal .booking_gcal_events_from_offset {
119
  float:none;
120
  margin:0 !important;
121
  }
122
- #wpbc_gcal_import_events_modal .booking_gcal_events_from_offset label,
123
- #wpbc_gcal_import_events_modal .booking_gcal_events_until_offset label {
124
  float:none;
125
  margin:10px 0 0!important;
126
  }
127
- #wpbc_gcal_import_events_modal #booking_gcal_events_from_offset,
128
- #wpbc_gcal_import_events_modal #booking_gcal_events_from_offset_type,
129
- #wpbc_gcal_import_events_modal #booking_gcal_events_until_offset,
130
- #wpbc_gcal_import_events_modal #booking_gcal_events_until_offset_type {
131
  width:100% !important;
132
  float:none;
133
  }
134
- #wpbc_gcal_import_events_modal .booking_gcal_events_from_offset > span.wpbc_offset_value select,
135
- #wpbc_gcal_import_events_modal .booking_gcal_events_until_offset > span.wpbc_offset_value select {
136
  margin-top:10px !important;
137
  }
138
 
@@ -157,7 +157,7 @@
157
  .wpdevelop .modal-dialog.modal-lg {
158
  width: 815px;
159
  }
160
- #wpbc_gcal_import_events_modal th {
161
  width:140px;
162
  }
163
  }
40
  }
41
 
42
  /* Modal Google Calendar Events Import */
43
+ .wpbc_modal__import_google_calendar__section span.description {
44
  display:none;
45
  }
46
+ .wpbc_modal__import_google_calendar__section #booking_gcal_events_until,
47
+ .wpbc_modal__import_google_calendar__section .booking_gcal_events_until_offset,
48
+ .wpbc_modal__import_google_calendar__section #booking_gcal_events_from,
49
+ .wpbc_modal__import_google_calendar__section .booking_gcal_events_from_offset {
50
  float:left;
51
  margin:5px 0 0 0 !important;
52
  }
53
+ .wpbc_modal__import_google_calendar__section .booking_gcal_events_from_offset label,
54
+ .wpbc_modal__import_google_calendar__section .booking_gcal_events_until_offset label {
55
  margin: 0 10px;
56
  float:left;
57
  line-height: 29px;
58
  }
59
+ .wpbc_modal__import_google_calendar__section input[type=text],
60
+ .wpbc_modal__import_google_calendar__section select {
61
  height:28px;
62
  }
63
+ .wpbc_modal__import_google_calendar__section th {
64
  vertical-align: middle;
65
  }
66
+ .wpbc_modal__import_google_calendar__section th,
67
+ .wpbc_modal__import_google_calendar__section td {
68
  border:none;
69
  }
70
+ .wpbc_modal__import_google_calendar__section label {
71
  line-height: 28px;
72
  margin: 0;
73
  vertical-align: middle;
74
  }
75
+ .wpbc_modal__import_google_calendar__section #booking_gcal_events_from_offset_type,
76
+ .wpbc_modal__import_google_calendar__section #booking_gcal_events_until_offset_type {
77
  vertical-align: initial;
78
  }
79
 
86
  }
87
 
88
  /* Import Google Events Dialog*/
89
+ .wpbc_modal__import_google_calendar__section .modal-dialog.modal-lg {
90
  width: auto;
91
  }
92
+ .wpbc_modal__import_google_calendar__section label{
93
  font-weight: 600;
94
  font-size: 1.1em;
95
  width:100%;
96
  display:block;
97
  float:none;
98
  }
99
+ .wpbc_modal__import_google_calendar__section input[type=text],
100
+ .wpbc_modal__import_google_calendar__section select {
101
  display:block;
102
  width:100%;
103
  clear:both;
104
  height:34px;
105
  float:none !important;
106
  }
107
+ .wpbc_modal__import_google_calendar__section th,
108
+ .wpbc_modal__import_google_calendar__section td {
109
  display:block;
110
  padding:0;
111
  }
112
+ .wpbc_modal__import_google_calendar__section td {
113
  margin-bottom: 15px;
114
  }
115
+ .wpbc_modal__import_google_calendar__section #booking_gcal_events_until,
116
+ .wpbc_modal__import_google_calendar__section .booking_gcal_events_until_offset,
117
+ .wpbc_modal__import_google_calendar__section #booking_gcal_events_from,
118
+ .wpbc_modal__import_google_calendar__section .booking_gcal_events_from_offset {
119
  float:none;
120
  margin:0 !important;
121
  }
122
+ .wpbc_modal__import_google_calendar__section .booking_gcal_events_from_offset label,
123
+ .wpbc_modal__import_google_calendar__section .booking_gcal_events_until_offset label {
124
  float:none;
125
  margin:10px 0 0!important;
126
  }
127
+ .wpbc_modal__import_google_calendar__section #booking_gcal_events_from_offset,
128
+ .wpbc_modal__import_google_calendar__section #booking_gcal_events_from_offset_type,
129
+ .wpbc_modal__import_google_calendar__section #booking_gcal_events_until_offset,
130
+ .wpbc_modal__import_google_calendar__section #booking_gcal_events_until_offset_type {
131
  width:100% !important;
132
  float:none;
133
  }
134
+ .wpbc_modal__import_google_calendar__section .booking_gcal_events_from_offset > span.wpbc_offset_value select,
135
+ .wpbc_modal__import_google_calendar__section .booking_gcal_events_until_offset > span.wpbc_offset_value select {
136
  margin-top:10px !important;
137
  }
138
 
157
  .wpdevelop .modal-dialog.modal-lg {
158
  width: 815px;
159
  }
160
+ .wpbc_modal__import_google_calendar__section th {
161
  width:140px;
162
  }
163
  }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: booking calendar, booking system, availability calendar, events calendar,
5
  Requires at least: 4.0
6
  Requires PHP: 5.6
7
  Tested up to: 6.0
8
- Stable tag: 9.1.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -230,6 +230,14 @@ Please see [Video Guides](https://wpbookingcalendar.com/help/).
230
  13. **Time Slots**. Simple configuration of **time slots** selection in booking form.
231
 
232
  == Changelog ==
 
 
 
 
 
 
 
 
233
  = 9.1.2 =
234
  - Changes in **all** versions:
235
  * **New**. Ability permanently delete all imported bookings before new import, instead of sending to Trash. Activate this option at the Booking > Settings > Sync > "General" page. (9.1.2.6)
5
  Requires at least: 4.0
6
  Requires PHP: 5.6
7
  Tested up to: 6.0
8
+ Stable tag: 9.1.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
230
  13. **Time Slots**. Simple configuration of **time slots** selection in booking form.
231
 
232
  == Changelog ==
233
+
234
+ = 9.1.3 =
235
+ - Changes in **all** versions:
236
+ * **Fix**. Changed "Booking" menu to "WPBC" (9.1.3.3)
237
+ * **Fix**. Check consistency of translations. For situations, when translators made mistakes with missed symbols like %s or additional items. One of known errors was like "Unknown format specifier "t" in ../booking/core/admin/page-form-free.php:192" (9.1.3.2)
238
+ - Changes in **Personal / Business Small / Business Medium / Business Large / MultiUser** versions:
239
+ * **Improvement**. Added calendar icons to text field in search availability form (9.1.3.1) *(Business Large, MultiUser)*
240
+
241
  = 9.1.2 =
242
  - Changes in **all** versions:
243
  * **New**. Ability permanently delete all imported bookings before new import, instead of sending to Trash. Activate this option at the Booking > Settings > Sync > "General" page. (9.1.2.6)
wpdev-booking.php CHANGED
@@ -7,7 +7,7 @@ Author: wpdevelop, oplugins
7
  Author URI: https://wpbookingcalendar.com/
8
  Text Domain: booking
9
  Domain Path: /languages/
10
- Version: 9.1.2
11
  */
12
 
13
  /* Copyright 2009 - 2022 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
@@ -29,7 +29,12 @@ Version: 9.1.2
29
  if ( ! defined( 'ABSPATH' ) ) die( '<h3>Direct access to this file do not allow!</h3>' ); // Exit if accessed directly
30
 
31
 
32
- if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { define( 'WP_BK_VERSION_NUM', '9.1.2' ); }
 
 
 
 
 
33
 
34
  ////////////////////////////////////////////////////////////////////////////////
35
  // PRIMARY URL CONSTANTS
7
  Author URI: https://wpbookingcalendar.com/
8
  Text Domain: booking
9
  Domain Path: /languages/
10
+ Version: 9.1.3
11
  */
12
 
13
  /* Copyright 2009 - 2022 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
29
  if ( ! defined( 'ABSPATH' ) ) die( '<h3>Direct access to this file do not allow!</h3>' ); // Exit if accessed directly
30
 
31
 
32
+ if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { define( 'WP_BK_VERSION_NUM', '9.1.3' ); }
33
+
34
+ if ( ( WP_DEBUG ) && ( 'beta' === $_SERVER['HTTP_HOST'] ) ) {
35
+ $current_error_reporting = error_reporting();
36
+ error_reporting( $current_error_reporting ^ ( E_DEPRECATED ) );
37
+ }
38
 
39
  ////////////////////////////////////////////////////////////////////////////////
40
  // PRIMARY URL CONSTANTS