PluginProbe
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization / trunk
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization vtrunk
4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 2.5.5 2.5.6 2.5.7 3.0.0 3.0.1 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.11.0 3.11.1 3.11.2 3.11.3 3.12.0 All 135 releases
← All changes | inc/compatibilities/metaslider.php +5 -6 2.5.5 → trunk View file →
@@ -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 ) {
@@ -56,9 +56,9 @@
56 56 * @param array $flags Old flags.
57 57 *
58 58 * @return array New flags.
59 59 */
60 - public function add_ignore_lazyload( $flags = array() ) {
60 + public function add_ignore_lazyload( $flags = [] ) {
61 61 $flags[] = 'no-optml-lazyload';
62 62
63 63 return $flags;
64 64 }
@@ -83,11 +83,10 @@
83 83 * @param array $flags Old flags.
84 84 *
85 85 * @return array New flags.
86 86 */
87 - public function add_noscript_flags( $flags = array() ) {
87 + public function add_noscript_flags( $flags = [] ) {
88 88 $flags[] = 'slide-';
89 89
90 90 return $flags;
91 91 }
92 -
93 92 }