| @@ -10,10 +10,10 @@ | ||
| 10 | 10 | * Should we load the integration logic. |
| 11 | 11 | * |
| 12 | 12 | * @return bool Should we load. |
| 13 | 13 | */ |
| 14 | - function should_load() { | |
| 15 | - include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
| 14 | + public function should_load() { | |
| 15 | + include_once ABSPATH . 'wp-admin/includes/plugin.php'; | |
| 16 | 16 | return is_plugin_active( 'sitepress-multilingual-cms/sitepress.php' ) && Optml_Main::instance()->admin->settings->get( 'offload_media' ) === 'enabled'; |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** |