Booking Calendar - Version 8.5.1.2

Version Description

  • Fix. Issue in some WordPress installtions of showing several times 'Welcome to Booking Calendar' menu items in dashboard.
Download this release

Release Info

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

Code changes from version 8.5.1.1 to 8.5.1.2

core/class/wpbc-class-welcome.php CHANGED
@@ -20,7 +20,7 @@ class WPBC_Welcome {
20
 
21
  public function __construct() {
22
  add_action( 'admin_menu', array( $this, 'admin_menus' ) );
23
- add_action( 'admin_head', array( $this, 'admin_head' ) );
24
  add_action( 'admin_init', array( $this, 'welcome' ) );
25
 
26
  add_action( 'wpbc_premium_content_overview', array( $this, 'content_premium' ) );
@@ -246,24 +246,29 @@ class WPBC_Welcome {
246
  // What's New
247
  add_dashboard_page(
248
  sprintf( 'Welcome to Booking Calendar' ),
249
- sprintf( 'Welcome to Booking Calendar' ),
250
  $this->minimum_capability, 'wpbc-about',
251
  array( $this, 'content_whats_new' )
252
  );
253
  // Getted Started
254
  add_dashboard_page(
255
- sprintf( 'Welcome to Booking Calendar' ),
256
- sprintf( 'Welcome to Booking Calendar' ),
257
  $this->minimum_capability, 'wpbc-getting-started',
258
  array( $this, 'content_getted_started' )
259
  );
260
  // Pro
261
  add_dashboard_page(
262
- sprintf( 'Welcome to Booking Calendar' ),
263
- sprintf( 'Welcome to Booking Calendar' ),
264
  $this->minimum_capability, 'wpbc-about-premium',
265
  array( $this, 'content_premium' )
266
  );
 
 
 
 
 
267
  }
268
 
269
  // Head
@@ -271,7 +276,6 @@ class WPBC_Welcome {
271
  remove_submenu_page( 'index.php', 'wpbc-about' );
272
  remove_submenu_page( 'index.php', 'wpbc-getting-started' );
273
  remove_submenu_page( 'index.php', 'wpbc-about-premium' );
274
-
275
  }
276
 
277
  // Title
20
 
21
  public function __construct() {
22
  add_action( 'admin_menu', array( $this, 'admin_menus' ) );
23
+ //add_action( 'admin_head', array( $this, 'admin_head' ) ); //FixIn: 8.5.1.2
24
  add_action( 'admin_init', array( $this, 'welcome' ) );
25
 
26
  add_action( 'wpbc_premium_content_overview', array( $this, 'content_premium' ) );
246
  // What's New
247
  add_dashboard_page(
248
  sprintf( 'Welcome to Booking Calendar' ),
249
+ sprintf( 'What\'s New' ),
250
  $this->minimum_capability, 'wpbc-about',
251
  array( $this, 'content_whats_new' )
252
  );
253
  // Getted Started
254
  add_dashboard_page(
255
+ sprintf( 'Get Started - Booking Calendar' ),
256
+ sprintf( 'Get Started' ),
257
  $this->minimum_capability, 'wpbc-getting-started',
258
  array( $this, 'content_getted_started' )
259
  );
260
  // Pro
261
  add_dashboard_page(
262
+ sprintf( 'Get Premium - Booking Calendar' ),
263
+ sprintf( 'Get Premium' ),
264
  $this->minimum_capability, 'wpbc-about-premium',
265
  array( $this, 'content_premium' )
266
  );
267
+ //FixIn: 8.5.1.2
268
+ remove_submenu_page( 'index.php', 'wpbc-about' );
269
+ remove_submenu_page( 'index.php', 'wpbc-getting-started' );
270
+ remove_submenu_page( 'index.php', 'wpbc-about-premium' );
271
+
272
  }
273
 
274
  // Head
276
  remove_submenu_page( 'index.php', 'wpbc-about' );
277
  remove_submenu_page( 'index.php', 'wpbc-getting-started' );
278
  remove_submenu_page( 'index.php', 'wpbc-about-premium' );
 
279
  }
280
 
281
  // Title
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.2.4
7
  Tested up to: 5.2
8
- Stable tag: 8.5.1.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -226,6 +226,9 @@ Please see [Video Guides](https://wpbookingcalendar.com/help/).
226
  13. **Time Slots**. Simple configuration of **time slots** selection in booking form.
227
 
228
  == Changelog ==
 
 
 
229
  = 8.5.1.1 =
230
  * **Fix**. Show options "Force import" (ability to import bookings without checking) and "Trash all imported bookings before new import" in all versions of plugin.
231
 
5
  Requires at least: 4.0
6
  Requires PHP: 5.2.4
7
  Tested up to: 5.2
8
+ Stable tag: 8.5.1.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
226
  13. **Time Slots**. Simple configuration of **time slots** selection in booking form.
227
 
228
  == Changelog ==
229
+ = 8.5.1.2 =
230
+ * **Fix**. Issue in some WordPress installtions of showing several times 'Welcome to Booking Calendar' menu items in dashboard.
231
+
232
  = 8.5.1.1 =
233
  * **Fix**. Show options "Force import" (ability to import bookings without checking) and "Trash all imported bookings before new import" in all versions of plugin.
234
 
wpdev-booking.php CHANGED
@@ -1,59 +1,59 @@
1
- <?php
2
- /*
3
- Plugin Name: Booking Calendar
4
- Plugin URI: https://wpbookingcalendar.com/demo/
5
- Description: Online reservation and availability checking service for your site.
6
- Author: wpdevelop, oplugins
7
- Author URI: https://wpbookingcalendar.com/
8
- Text Domain: booking
9
- Domain Path: /languages/
10
- Version: 8.5.1.1
11
- */
12
-
13
- /* Copyright 2009 - 2019 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
14
-
15
- This program is free software: you can redistribute it and/or modify
16
- it under the terms of the GNU General Public License as published by
17
- the Free Software Foundation, either version 2 of the License, or
18
- (at your option) any later version.
19
-
20
- This program is distributed in the hope that it will be useful,
21
- but WITHOUT ANY WARRANTY; without even the implied warranty of
22
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
- GNU General Public License for more details.
24
-
25
- You should have received a copy of the GNU General Public License
26
- along with this program. If not, see <http://www.gnu.org/licenses/>
27
- */
28
-
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', '8.5.1.1' ); }
33
-
34
- ////////////////////////////////////////////////////////////////////////////////
35
- // PRIMARY URL CONSTANTS
36
- ////////////////////////////////////////////////////////////////////////////////
37
-
38
- // ..\home\siteurl\www\wp-content\plugins\plugin-name\wpdev-booking.php
39
- if ( ! defined( 'WPBC_FILE' ) ) define( 'WPBC_FILE', __FILE__ );
40
-
41
- // wpdev-booking.php
42
- if ( ! defined('WPBC_PLUGIN_FILENAME' ) ) define('WPBC_PLUGIN_FILENAME', basename( __FILE__ ) );
43
-
44
- // plugin-name
45
- if ( ! defined('WPBC_PLUGIN_DIRNAME' ) ) define('WPBC_PLUGIN_DIRNAME', plugin_basename( dirname( __FILE__ ) ) );
46
-
47
- // ..\home\siteurl\www\wp-content\plugins\plugin-name
48
- if ( ! defined('WPBC_PLUGIN_DIR' ) ) define('WPBC_PLUGIN_DIR', untrailingslashit( plugin_dir_path( WPBC_FILE ) ) );
49
-
50
- // http: //website.com/wp-content/plugins/plugin-name
51
- if ( ! defined('WPBC_PLUGIN_URL' ) ) define('WPBC_PLUGIN_URL', untrailingslashit( plugins_url( '', WPBC_FILE ) ) );
52
-
53
- if ( ! defined('WP_BK_MIN_WP_VERSION' ) ) define('WP_BK_MIN_WP_VERSION', '4.0'); //Minimum required WP version //FixIn: 7.0.1.6
54
-
55
- require_once WPBC_PLUGIN_DIR . '/core/wpbc.php';
56
-
57
- /* TODO:
58
- 1. Auto populate booking info from exist customers into the booking form at Booking > Add booking page.
59
  */
1
+ <?php
2
+ /*
3
+ Plugin Name: Booking Calendar
4
+ Plugin URI: https://wpbookingcalendar.com/demo/
5
+ Description: Online reservation and availability checking service for your site.
6
+ Author: wpdevelop, oplugins
7
+ Author URI: https://wpbookingcalendar.com/
8
+ Text Domain: booking
9
+ Domain Path: /languages/
10
+ Version: 8.5.1.2
11
+ */
12
+
13
+ /* Copyright 2009 - 2019 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
14
+
15
+ This program is free software: you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License as published by
17
+ the Free Software Foundation, either version 2 of the License, or
18
+ (at your option) any later version.
19
+
20
+ This program is distributed in the hope that it will be useful,
21
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ GNU General Public License for more details.
24
+
25
+ You should have received a copy of the GNU General Public License
26
+ along with this program. If not, see <http://www.gnu.org/licenses/>
27
+ */
28
+
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', '8.5.1.2' ); }
33
+
34
+ ////////////////////////////////////////////////////////////////////////////////
35
+ // PRIMARY URL CONSTANTS
36
+ ////////////////////////////////////////////////////////////////////////////////
37
+
38
+ // ..\home\siteurl\www\wp-content\plugins\plugin-name\wpdev-booking.php
39
+ if ( ! defined( 'WPBC_FILE' ) ) define( 'WPBC_FILE', __FILE__ );
40
+
41
+ // wpdev-booking.php
42
+ if ( ! defined('WPBC_PLUGIN_FILENAME' ) ) define('WPBC_PLUGIN_FILENAME', basename( __FILE__ ) );
43
+
44
+ // plugin-name
45
+ if ( ! defined('WPBC_PLUGIN_DIRNAME' ) ) define('WPBC_PLUGIN_DIRNAME', plugin_basename( dirname( __FILE__ ) ) );
46
+
47
+ // ..\home\siteurl\www\wp-content\plugins\plugin-name
48
+ if ( ! defined('WPBC_PLUGIN_DIR' ) ) define('WPBC_PLUGIN_DIR', untrailingslashit( plugin_dir_path( WPBC_FILE ) ) );
49
+
50
+ // http: //website.com/wp-content/plugins/plugin-name
51
+ if ( ! defined('WPBC_PLUGIN_URL' ) ) define('WPBC_PLUGIN_URL', untrailingslashit( plugins_url( '', WPBC_FILE ) ) );
52
+
53
+ if ( ! defined('WP_BK_MIN_WP_VERSION' ) ) define('WP_BK_MIN_WP_VERSION', '4.0'); //Minimum required WP version //FixIn: 7.0.1.6
54
+
55
+ require_once WPBC_PLUGIN_DIR . '/core/wpbc.php';
56
+
57
+ /* TODO:
58
+ 1. Auto populate booking info from exist customers into the booking form at Booking > Add booking page.
59
  */