prefix && $layout['old'] === 0; if ( ! DatabaseState::ready( $wpdb ) && ! ( $version === 0 && ! DatabaseState::has_history( $wpdb ) && ( $layout['state'] === 'empty' || $owned_fresh ) ) ) { // Retained legacy data can be reinstalled into diagnostic mode. // Activation enables the CLI recovery command, never a live rename, // defaults over old settings, or application write handlers. return; } ( new Installer( $wpdb ) )->migrate(); \ABeCe\Booking\Support\LegacyIdentifiers::migrate(); (new \ABeCe\Booking\Repository\SettingsRepository())->initialize(); Capabilities::install(); \ABeCe\Booking\Edition\Modules::current()->initialize(); } catch ( Throwable $error ) { wp_die( esc_html( $error->getMessage() ) ); } } }