Booking Calendar - Version 5.3.2

Version Description

  • Fix issue of conflict with WPML plugin in free version of plugin. If the customer use WPML plugin, sometimes was existing issue that labels in the booking form have the same title of first element.
Download this release

Release Info

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

Code changes from version 5.3.1 to 5.3.2

lib/wpbc-constants.php CHANGED
@@ -24,7 +24,7 @@ if (!defined('WP_BK_CUSTOM_FORMS_FOR_REGULAR_USERS')) define('WP_BK_CUSTOM_FOR
24
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
25
  // SYSTEM CONSTANTS //////////////////////////////////////////////////////////////////////////////////////////////////
26
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
27
- if (!defined('WP_BK_VERSION_NUM')) define('WP_BK_VERSION_NUM', '5.3.1' );
28
  if (!defined('WP_BK_MINOR_UPDATE')) define('WP_BK_MINOR_UPDATE', true );
29
  if (!defined('IS_USE_WPDEV_BK_CACHE')) define('IS_USE_WPDEV_BK_CACHE', true );
30
  if (!defined('WP_BK_DEBUG_MODE')) define('WP_BK_DEBUG_MODE', false );
24
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
25
  // SYSTEM CONSTANTS //////////////////////////////////////////////////////////////////////////////////////////////////
26
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
27
+ if (!defined('WP_BK_VERSION_NUM')) define('WP_BK_VERSION_NUM', '5.3.2' );
28
  if (!defined('WP_BK_MINOR_UPDATE')) define('WP_BK_MINOR_UPDATE', true );
29
  if (!defined('IS_USE_WPDEV_BK_CACHE')) define('IS_USE_WPDEV_BK_CACHE', true );
30
  if (!defined('WP_BK_DEBUG_MODE')) define('WP_BK_DEBUG_MODE', false );
lib/wpdev-booking-class.php CHANGED
@@ -607,8 +607,10 @@ class wpdev_booking {
607
  );
608
 
609
  for ($i = 0 ; $i < count($users_roles) ; $i++) {
 
 
610
 
611
- if ( $users_roles[$i] == 'administrator' ) $users_roles[$i] = 'activate_plugins';
612
  if ( $users_roles[$i] == 'editor' ) $users_roles[$i] = 'publish_pages';
613
  if ( $users_roles[$i] == 'author' ) $users_roles[$i] = 'publish_posts';
614
  if ( $users_roles[$i] == 'contributor' ) $users_roles[$i] = 'edit_posts';
@@ -1513,42 +1515,42 @@ class wpdev_booking {
1513
  $booking_form_field_label1 = get_bk_option( 'booking_form_field_label1');
1514
  $booking_form_field_label1 = apply_bk_filter('wpdev_check_for_active_language', $booking_form_field_label1 );
1515
  if (function_exists('icl_translate'))
1516
- $booking_form_field_label1 = icl_translate( 'wpml_custom', 'wpml_custom_', $booking_form_field_label1);
1517
 
1518
  $booking_form_field_active2 = get_bk_option( 'booking_form_field_active2');
1519
  $booking_form_field_required2 = get_bk_option( 'booking_form_field_required2');
1520
  $booking_form_field_label2 = get_bk_option( 'booking_form_field_label2');
1521
  $booking_form_field_label2 = apply_bk_filter('wpdev_check_for_active_language', $booking_form_field_label2 );
1522
  if (function_exists('icl_translate'))
1523
- $booking_form_field_label2 = icl_translate( 'wpml_custom', 'wpml_custom_', $booking_form_field_label2);
1524
 
1525
  $booking_form_field_active3 = get_bk_option( 'booking_form_field_active3');
1526
  $booking_form_field_required3 = get_bk_option( 'booking_form_field_required3');
1527
  $booking_form_field_label3 = get_bk_option( 'booking_form_field_label3');
1528
  $booking_form_field_label3 = apply_bk_filter('wpdev_check_for_active_language', $booking_form_field_label3 );
1529
  if (function_exists('icl_translate'))
1530
- $booking_form_field_label3 = icl_translate( 'wpml_custom', 'wpml_custom_', $booking_form_field_label3);
1531
 
1532
  $booking_form_field_active4 = get_bk_option( 'booking_form_field_active4');
1533
  $booking_form_field_required4 = get_bk_option( 'booking_form_field_required4');
1534
  $booking_form_field_label4 = get_bk_option( 'booking_form_field_label4');
1535
  $booking_form_field_label4 = apply_bk_filter('wpdev_check_for_active_language', $booking_form_field_label4 );
1536
  if (function_exists('icl_translate'))
1537
- $booking_form_field_label4 = icl_translate( 'wpml_custom', 'wpml_custom_', $booking_form_field_label4);
1538
 
1539
  $booking_form_field_active5 = get_bk_option( 'booking_form_field_active5');
1540
  $booking_form_field_required5 = get_bk_option( 'booking_form_field_required5');
1541
  $booking_form_field_label5 = get_bk_option( 'booking_form_field_label5');
1542
  $booking_form_field_label5 = apply_bk_filter('wpdev_check_for_active_language', $booking_form_field_label5 );
1543
  if (function_exists('icl_translate'))
1544
- $booking_form_field_label5 = icl_translate( 'wpml_custom', 'wpml_custom_', $booking_form_field_label5);
1545
 
1546
  $booking_form_field_active6 = get_bk_option( 'booking_form_field_active6');
1547
  $booking_form_field_required6 = get_bk_option( 'booking_form_field_required6');
1548
  $booking_form_field_label6 = get_bk_option( 'booking_form_field_label6');
1549
  $booking_form_field_label6 = apply_bk_filter('wpdev_check_for_active_language', $booking_form_field_label6 );
1550
  if (function_exists('icl_translate'))
1551
- $booking_form_field_label6 = icl_translate( 'wpml_custom', 'wpml_custom_', $booking_form_field_label6);
1552
  $booking_form_field_values6 = get_bk_option( 'booking_form_field_values6' );
1553
 
1554
  $my_form = '[calendar]';
607
  );
608
 
609
  for ($i = 0 ; $i < count($users_roles) ; $i++) {
610
+
611
+ if ( empty($users_roles[$i]) ) $users_roles[$i] = 'editor'; //Fix: 2015-03-02 Need to have this fix for WordPress MU installations.
612
 
613
+ if ( $users_roles[$i] == 'administrator' ) $users_roles[$i] = 'manage_options';
614
  if ( $users_roles[$i] == 'editor' ) $users_roles[$i] = 'publish_pages';
615
  if ( $users_roles[$i] == 'author' ) $users_roles[$i] = 'publish_posts';
616
  if ( $users_roles[$i] == 'contributor' ) $users_roles[$i] = 'edit_posts';
1515
  $booking_form_field_label1 = get_bk_option( 'booking_form_field_label1');
1516
  $booking_form_field_label1 = apply_bk_filter('wpdev_check_for_active_language', $booking_form_field_label1 );
1517
  if (function_exists('icl_translate'))
1518
+ $booking_form_field_label1 = icl_translate( 'wpml_custom', 'wpbc_custom_form_field_label1', $booking_form_field_label1);
1519
 
1520
  $booking_form_field_active2 = get_bk_option( 'booking_form_field_active2');
1521
  $booking_form_field_required2 = get_bk_option( 'booking_form_field_required2');
1522
  $booking_form_field_label2 = get_bk_option( 'booking_form_field_label2');
1523
  $booking_form_field_label2 = apply_bk_filter('wpdev_check_for_active_language', $booking_form_field_label2 );
1524
  if (function_exists('icl_translate'))
1525
+ $booking_form_field_label2 = icl_translate( 'wpml_custom', 'wpbc_custom_form_field_label2', $booking_form_field_label2);
1526
 
1527
  $booking_form_field_active3 = get_bk_option( 'booking_form_field_active3');
1528
  $booking_form_field_required3 = get_bk_option( 'booking_form_field_required3');
1529
  $booking_form_field_label3 = get_bk_option( 'booking_form_field_label3');
1530
  $booking_form_field_label3 = apply_bk_filter('wpdev_check_for_active_language', $booking_form_field_label3 );
1531
  if (function_exists('icl_translate'))
1532
+ $booking_form_field_label3 = icl_translate( 'wpml_custom', 'wpbc_custom_form_field_label3', $booking_form_field_label3);
1533
 
1534
  $booking_form_field_active4 = get_bk_option( 'booking_form_field_active4');
1535
  $booking_form_field_required4 = get_bk_option( 'booking_form_field_required4');
1536
  $booking_form_field_label4 = get_bk_option( 'booking_form_field_label4');
1537
  $booking_form_field_label4 = apply_bk_filter('wpdev_check_for_active_language', $booking_form_field_label4 );
1538
  if (function_exists('icl_translate'))
1539
+ $booking_form_field_label4 = icl_translate( 'wpml_custom', 'wpbc_custom_form_field_label4', $booking_form_field_label4);
1540
 
1541
  $booking_form_field_active5 = get_bk_option( 'booking_form_field_active5');
1542
  $booking_form_field_required5 = get_bk_option( 'booking_form_field_required5');
1543
  $booking_form_field_label5 = get_bk_option( 'booking_form_field_label5');
1544
  $booking_form_field_label5 = apply_bk_filter('wpdev_check_for_active_language', $booking_form_field_label5 );
1545
  if (function_exists('icl_translate'))
1546
+ $booking_form_field_label5 = icl_translate( 'wpml_custom', 'wpbc_custom_form_field_label5', $booking_form_field_label5);
1547
 
1548
  $booking_form_field_active6 = get_bk_option( 'booking_form_field_active6');
1549
  $booking_form_field_required6 = get_bk_option( 'booking_form_field_required6');
1550
  $booking_form_field_label6 = get_bk_option( 'booking_form_field_label6');
1551
  $booking_form_field_label6 = apply_bk_filter('wpdev_check_for_active_language', $booking_form_field_label6 );
1552
  if (function_exists('icl_translate'))
1553
+ $booking_form_field_label6 = icl_translate( 'wpml_custom', 'wpbc_custom_form_field_label6', $booking_form_field_label6);
1554
  $booking_form_field_values6 = get_bk_option( 'booking_form_field_values6' );
1555
 
1556
  $my_form = '[calendar]';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wpbookingcalendar.com/buy/
4
  Tags: booking, booking calendar, accommodations, appointment, availability, availability calendar, bed and breakfast, booking form, booking system, bookings, calendar, contact form, event, event calendar, events, hotel, meeting, online booking calendar, online reservation, reservation, reservation plugin, rooms, schedule, scheduling
5
  Requires at least: 3.3
6
  Tested up to: 4.1.1
7
- Stable tag: 5.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -149,7 +149,10 @@ If you have any further questions, please fill free to <a href="mailto:support@w
149
  11. **Calendar Skins**. Select calendar skin for better fitting to your web-site design.
150
 
151
  == Changelog ==
152
- = 5.3.1 =
 
 
 
153
  - Features and issue fixings in All versions:
154
  * Updated German translation [100% Completed] by Dirk Gabler.
155
  * Updated Swedish translation [100% Completed] by Ruben Salas
4
  Tags: booking, booking calendar, accommodations, appointment, availability, availability calendar, bed and breakfast, booking form, booking system, bookings, calendar, contact form, event, event calendar, events, hotel, meeting, online booking calendar, online reservation, reservation, reservation plugin, rooms, schedule, scheduling
5
  Requires at least: 3.3
6
  Tested up to: 4.1.1
7
+ Stable tag: 5.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
149
  11. **Calendar Skins**. Select calendar skin for better fitting to your web-site design.
150
 
151
  == Changelog ==
152
+ = 5.3.2 =
153
+ * **Fix** issue of conflict with WPML plugin in free version of plugin. If the customer use WPML plugin, sometimes was existing issue that labels in the booking form have the same title of first element.
154
+
155
+ = 5.3.1 =
156
  - Features and issue fixings in All versions:
157
  * Updated German translation [100% Completed] by Dirk Gabler.
158
  * Updated Swedish translation [100% Completed] by Ruben Salas
wpdev-booking.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Booking Calendar
4
  Plugin URI: http://wpbookingcalendar.com/demo/
5
  Description: Online reservation and availability checking service for your site.
6
- Version: 5.3.1
7
  Author: wpdevelop
8
  Author URI: http://wpbookingcalendar.com/
9
  Tested WordPress Versions: 3.3 - 4.1.1
3
  Plugin Name: Booking Calendar
4
  Plugin URI: http://wpbookingcalendar.com/demo/
5
  Description: Online reservation and availability checking service for your site.
6
+ Version: 5.3.2
7
  Author: wpdevelop
8
  Author URI: http://wpbookingcalendar.com/
9
  Tested WordPress Versions: 3.3 - 4.1.1