| @@ -184,9 +184,12 @@ | ||
| 184 | 184 | if ( isset( $_GET['page'] ) && sanitize_key( wp_unslash( $_GET['page'] ) ) === 'wpvr-tour-editor' ) { |
| 185 | 185 | return; |
| 186 | 186 | } |
| 187 | 187 | |
| 188 | - require_once plugin_dir_path(__FILE__) . '../partials/wpvr_confirmation_alert.php'; | |
| 188 | + $file = plugin_dir_path(__FILE__) . '../partials/wpvr_confirmation_alert.php'; | |
| 189 | + if ( file_exists( $file ) ) { | |
| 190 | + require_once $file; | |
| 191 | + } | |
| 189 | 192 | } |
| 190 | 193 | |
| 191 | 194 | function wpvr_new_setup_wizard() { |
| 192 | 195 | echo '<div id="wpvr-onboarding-root"></div>'; |