PluginProbe
Booking Calendar / 11.8.1
Booking Calendar v11.8.1
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 10.11.3 10.11.4 All 201 releases
← All changes | core/wpbc.php +5 -3 11.811.8.1 View file →
@@ -258,14 +258,16 @@
258 258 'browser_header' => __( 'Settings', 'booking' ) . ' - ' . __( 'Booking Calendar', 'booking' ),
259 259 'user_role' => get_bk_option( 'booking_user_role_settings' ),
260 260 ) );
261 261
262 - if ( ( wpbc_is_user_can_access_wizard_page() ) && ( ! wpbc_setup_wizard_page__is_all_steps_completed() ) ) {
262 + if ( wpbc_is_user_can_access_wizard_page() ) {
263 263
264 - $setup_steps = new WPBC_SETUP_WIZARD_STEPS();
264 + $setup_steps = new WPBC_SETUP_WIZARD_STEPS();
265 + $is_setup_menu_visible = wpbc_setup_wizard_is_initial_install_site()
266 + && ! $setup_steps->db__is_all_steps_completed();
265 267
266 268 self::$instance->admin_menu['setup'] = new WPBC_Admin_Menus( 'wpbc-setup', array(
267 - 'in_menu' => 'wpbc',
269 + 'in_menu' => $is_setup_menu_visible ? 'wpbc' : false,
268 270 'menu_title' => $setup_steps->get_plugin_menu_title__setup_progress(),
269 271 'page_header' => ucwords( __( 'Setup', 'booking' ) ),
270 272 'browser_header' => ucwords( __( 'Setup', 'booking' ) ) . ' - ' . __( 'Booking Calendar', 'booking' ),
271 273 'user_role' => get_bk_option( 'booking_user_role_settings' ),