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/revslider.php +5 -6 3.11.2 → trunk View file →
@@ -11,10 +11,10 @@
11 11 * Should we load the integration logic.
12 12 *
13 13 * @return bool Should we load.
14 14 */
15 - function should_load() {
16 - include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
15 + public function should_load() {
16 + include_once ABSPATH . 'wp-admin/includes/plugin.php';
17 17
18 18 return is_plugin_active( 'revslider/revslider.php' );
19 19 }
20 20
@@ -23,10 +23,10 @@
23 23 */
24 24 public function register() {
25 25
26 26 add_filter( 'optml_possible_lazyload_flags', [ $this, 'add_lazyflag' ], 10 );
27 - add_filter( 'optml_ignore_data_opt_flag', [$this, 'add_data_ignore'], 10 );
28 - add_filter( 'optml_lazyload_bg_classes', [$this, 'add_bg_class'], 10 );
27 + add_filter( 'optml_ignore_data_opt_flag', [ $this, 'add_data_ignore' ], 10 );
28 + add_filter( 'optml_lazyload_bg_classes', [ $this, 'add_bg_class' ], 10 );
29 29 }
30 30
31 31 /**
32 32 * Add Slider Revolution lazyload flag.
@@ -34,9 +34,9 @@
34 34 * @param array $strings Old strings.
35 35 *
36 36 * @return array New flags.
37 37 */
38 - function add_lazyflag( $strings = [] ) {
38 + public function add_lazyflag( $strings = [] ) {
39 39
40 40 $strings[] = 'rev-slidebg';
41 41 $strings[] = 'rs-lazyload';
42 42
@@ -67,6 +67,5 @@
67 67 $flags[] = 'rev-slidebg';
68 68 $flags[] = 'rs-lazyload';
69 69 return $flags;
70 70 }
71 -
72 71 }