| @@ -2,9 +2,10 @@ | ||
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | 4 | * Class Optml_master_slider. |
| 5 | 5 | * |
| 6 | - * @reason Added classes to watch for background lazyload | |
| 6 | + * @reason Added classes to watch for background lazyload, | |
| 7 | + * we can only hook the css before storing in db ('masterslider_get_all_custom_css'), but we can not reliably regenerate it when settings are changing | |
| 7 | 8 | */ |
| 8 | 9 | class Optml_master_slider extends Optml_compatibility { |
| 9 | 10 | |
| 10 | 11 | |
| @@ -13,10 +14,10 @@ | ||
| 13 | 14 | * Should we load the integration logic. |
| 14 | 15 | * |
| 15 | 16 | * @return bool Should we load. |
| 16 | 17 | */ |
| 17 | - function should_load() { | |
| 18 | - include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
| 18 | + public function should_load() { | |
| 19 | + include_once ABSPATH . 'wp-admin/includes/plugin.php'; | |
| 19 | 20 | |
| 20 | 21 | return is_plugin_active( 'master-slider/master-slider.php' ); |
| 21 | 22 | } |
| 22 | 23 | |
| @@ -41,7 +42,6 @@ | ||
| 41 | 42 | }, |
| 42 | 43 | 10, |
| 43 | 44 | 2 |
| 44 | 45 | ); |
| 45 | - | |
| 46 | 46 | } |
| 47 | 47 | } |