| @@ -1,11 +1,11 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Plugin Name: Kadence Performance | |
| 4 | - * Description: Optimize site performance, boost PageSpeed, and serve a faster website with this simple site optimization tool from Kadence. Easy page caching setup will accelerate your site in minutes with only a couple of clicks. | |
| 5 | - * Author: Kadence | |
| 6 | - * Author URI: https://kadencewp.com | |
| 7 | - * Version: 2.0.1 | |
| 3 | + * Plugin Name: Solid Performance | |
| 4 | + * Description: Optimize site performance, boost PageSpeed, and serve a faster website with this simple site optimization tool from SolidWP. Easy page caching setup will accelerate your site in minutes with only a couple of clicks. | |
| 5 | + * Author: SolidWP | |
| 6 | + * Author URI: https://go.solidwp.com/performance-author | |
| 7 | + * Version: 1.7.0 | |
| 8 | 8 | * Text Domain: solid-performance |
| 9 | 9 | * Domain Path: /lang |
| 10 | 10 | * License: GPLv2-or-later |
| 11 | 11 | * Requires at least: 6.4 |
| @@ -29,25 +29,17 @@ | ||
| 29 | 29 | require_once __DIR__ . '/src/functions/config.php'; |
| 30 | 30 | |
| 31 | 31 | define( 'SWPSP_PLUGIN_FILE', __FILE__ ); |
| 32 | 32 | |
| 33 | -// Get the plugin's singleton instance. | |
| 34 | -$core = swpsp_plugin(); | |
| 33 | +// Get the plugin's singleton instance and fully initialize the container definitions. | |
| 34 | +$core = swpsp_plugin()->init(); | |
| 35 | 35 | |
| 36 | -add_action( | |
| 37 | - 'plugins_loaded', | |
| 38 | - static function () use ( $core ): void { | |
| 39 | - // Fully boot the plugin and its service providers. | |
| 40 | - $core->init(); | |
| 41 | - } | |
| 42 | -); | |
| 43 | - | |
| 44 | 36 | /** |
| 45 | - * Fires when the Kadence Performance plugin is loaded. | |
| 37 | + * Fires when the SolidWP Performance plugin is loaded. | |
| 46 | 38 | * |
| 47 | - * @since 1.3.3 | |
| 39 | + * @since TBD | |
| 48 | 40 | */ |
| 49 | 41 | do_action( 'solidwp/performance/bootstrap_file_loaded' ); |
| 50 | 42 | |
| 51 | -register_activation_hook( __FILE__, Activator::callback() ); | |
| 52 | -register_deactivation_hook( __FILE__, Deactivator::callback() ); | |
| 43 | +register_activation_hook( __FILE__, new Activator( $core->container() ) ); | |
| 44 | +register_deactivation_hook( __FILE__, new Deactivator( $core->container() ) ); | |
| 53 | 45 | register_uninstall_hook( __FILE__, [ Uninstaller::class, 'uninstall' ] ); |