| @@ -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 | |
| 19 | 19 | return is_plugin_active( 'ml-slider/ml-slider.php' ) || is_plugin_active( 'ml-slider-pro/ml-slider-pro.php' ); |
| 20 | 20 | } |
| 21 | 21 | |
| @@ -24,9 +24,9 @@ | ||
| 24 | 24 | */ |
| 25 | 25 | public function register() { |
| 26 | 26 | add_filter( 'optml_ignore_noscript_on', [ $this, 'add_noscript_flags' ], PHP_INT_MAX, 1 ); |
| 27 | 27 | add_filter( 'optml_possible_lazyload_flags', [ $this, 'add_ignore_lazyload' ], PHP_INT_MAX, 1 ); |
| 28 | - add_filter( 'optml_watcher_lz_classes', [ $this, 'add_watcher_class' ], 10, 1 ); | |
| 28 | + add_filter( 'optml_watcher_lz_classes', [ $this, 'add_watcher_class' ], 10 ); | |
| 29 | 29 | add_filter( 'metaslider_coin_slider_image_attributes', [ $this, 'setup_listner' ], PHP_INT_MAX, 1 ); |
| 30 | 30 | add_filter( |
| 31 | 31 | 'optml_lazyload_bg_selectors', |
| 32 | 32 | function ( $all_watchers ) { |
| @@ -88,6 +88,5 @@ | ||
| 88 | 88 | $flags[] = 'slide-'; |
| 89 | 89 | |
| 90 | 90 | return $flags; |
| 91 | 91 | } |
| 92 | - | |
| 93 | 92 | } |