%s

', esc_html( sprintf( /* translators: 1: required PHP version, 2: running PHP version. */ __( 'Quick Launch Migrate requires PHP %1$s or newer. This server runs PHP %2$s, so the plugin is inactive.', 'quick-launch-migrate' ), QLMIG_MIN_PHP, PHP_VERSION ) ) ); } ); return; } /* * Class autoloader: QLMIG_Archive_Engine -> includes/class-qlmig-archive-engine.php. * WordPress naming conventions without Composer, so the plugin ships as-is. * The Pro add-on registers its own loader for its own directory; classes that * are not found here simply fall through to the next registered loader. */ spl_autoload_register( function ( $class_name ) { if ( 0 !== strpos( $class_name, 'QLMIG_' ) ) { return; } // Small helper classes that live beside the class that uses them. $shared = array( 'QLMIG_Search_Replace' => 'QLMIG_DB_Migrator', 'QLMIG_Archive_Writer' => 'QLMIG_Archive_Engine', ); if ( isset( $shared[ $class_name ] ) ) { $class_name = $shared[ $class_name ]; } $file = QLMIG_DIR . 'includes/class-' . strtolower( str_replace( '_', '-', $class_name ) ) . '.php'; if ( is_readable( $file ) ) { require_once $file; } } ); register_activation_hook( __FILE__, array( 'QLMIG_Plugin', 'activate' ) ); register_deactivation_hook( __FILE__, array( 'QLMIG_Plugin', 'deactivate' ) ); /* * Boot at plugins_loaded priority 5 and fire `qlmig_loaded`. Add-ons hook into * `qlmig_loaded` instead of relying on plugin load order, so they never assume * the free classes exist at include time. */ add_action( 'plugins_loaded', function () { QLMIG_Plugin::instance()->boot(); }, 5 );