| @@ -28,10 +28,11 @@ | ||
| 28 | 28 | require_once( WPBC_PLUGIN_DIR . '/includes/page-setup/templates/04.bookings_types__tpl.php' ); |
| 29 | 29 | require_once( WPBC_PLUGIN_DIR . '/includes/page-setup/templates/04.bookings_types__action.php' ); |
| 30 | 30 | |
| 31 | 31 | require_once( WPBC_PLUGIN_DIR . '/includes/page-setup/setup_steps.php' ); |
| 32 | -require_once( WPBC_PLUGIN_DIR . '/includes/page-setup/setup_ajax.php' ); | |
| 33 | -require_once( WPBC_PLUGIN_DIR . '/includes/page-setup/setup_support.php' ); | |
| 32 | +require_once( WPBC_PLUGIN_DIR . '/includes/page-setup/setup_ajax.php' ); | |
| 33 | +require_once( WPBC_PLUGIN_DIR . '/includes/page-setup/setup_support.php' ); | |
| 34 | +require_once( WPBC_PLUGIN_DIR . '/includes/page-setup/first-run-popup.php' ); | |
| 34 | 35 | |
| 35 | 36 | /** Show Content |
| 36 | 37 | * Update Content |
| 37 | 38 | * Define Slug |
| @@ -309,12 +310,12 @@ | ||
| 309 | 310 | // Delete from DB |
| 310 | 311 | $is_reseted = $user_request->user_request_params__db_delete(); |
| 311 | 312 | |
| 312 | 313 | // Clear All Steps Mark as Undone |
| 313 | - $setup_steps = new WPBC_SETUP_WIZARD_STEPS(); | |
| 314 | - $setup_steps->db__set_all_steps_as( false ); | |
| 315 | - update_bk_option( 'booking_wizard_data', array() ); | |
| 316 | - wpbc_setup_wizard__set_full_screen_mode_for_current_user( false ); | |
| 314 | + $setup_steps = new WPBC_SETUP_WIZARD_STEPS(); | |
| 315 | + $setup_steps->db__set_all_steps_as( false ); | |
| 316 | + update_bk_option( 'booking_wizard_data', array() ); | |
| 317 | + wpbc_setup_wizard__set_full_screen_mode_for_current_user( true ); | |
| 317 | 318 | |
| 318 | 319 | return true; |
| 319 | 320 | } |
| 320 | 321 | |
| @@ -319,15 +320,20 @@ | ||
| 319 | 320 | } |
| 320 | 321 | |
| 321 | 322 | $setup_steps = new WPBC_SETUP_WIZARD_STEPS(); |
| 322 | 323 | $steps_arr = $setup_steps->get_steps_arr(); |
| 323 | - $request_step = ''; | |
| 324 | - | |
| 325 | - if ( 'On' === get_bk_option( 'booking_setup_wizard_page_is_completed' ) ) { | |
| 326 | - wpbc_setup_wizard__set_full_screen_mode_for_current_user( false ); | |
| 327 | - return true; | |
| 328 | - } | |
| 329 | - $is_external_setup_flow_started = $setup_steps->db__is_step_completed( 'bookings_types' ); | |
| 324 | + $request_step = ''; | |
| 325 | + | |
| 326 | + if ( 'On' === get_bk_option( 'booking_setup_wizard_page_is_completed' ) ) { | |
| 327 | + // A completed wizard has no authority over the administrator's later Full Screen preference. | |
| 328 | + return true; | |
| 329 | + } | |
| 330 | + | |
| 331 | + if ( wpbc_is_setup_wizard_page() ) { | |
| 332 | + wpbc_setup_wizard__set_full_screen_mode_for_current_user( true ); | |
| 333 | + } | |
| 334 | + | |
| 335 | + $is_external_setup_flow_started = $setup_steps->db__is_step_completed( 'bookings_types' ); | |
| 330 | 336 | |
| 331 | 337 | // Persist the real setup step when the user lands on an external WPBC admin page. |
| 332 | 338 | // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing |
| 333 | 339 | if ( isset( $_REQUEST['wpbc_setup_step'] ) ) { |