| @@ -12,10 +12,10 @@ | ||
| 12 | 12 | * Should we load the integration logic. |
| 13 | 13 | * |
| 14 | 14 | * @return bool Should we load. |
| 15 | 15 | */ |
| 16 | - function should_load() { | |
| 17 | - include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
| 16 | + public function should_load() { | |
| 17 | + include_once ABSPATH . 'wp-admin/includes/plugin.php'; | |
| 18 | 18 | return Optml_Main::instance()->admin->settings->get( 'cdn' ) === 'enabled' && is_plugin_active( 'swift-performance-lite/performance.php' ); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
| @@ -24,5 +24,4 @@ | ||
| 24 | 24 | public function register() { |
| 25 | 25 | add_filter( 'swift_performance_buffer', [ Optml_Main::instance()->manager, 'replace_content' ], 10 ); |
| 26 | 26 | } |
| 27 | 27 | } |
| 28 | - | |