diff options
Diffstat (limited to 'plugins/jetpack/modules/likes/jetpack-likes-settings.php')
-rw-r--r-- | plugins/jetpack/modules/likes/jetpack-likes-settings.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/likes/jetpack-likes-settings.php b/plugins/jetpack/modules/likes/jetpack-likes-settings.php index 390fea1e..a172603b 100644 --- a/plugins/jetpack/modules/likes/jetpack-likes-settings.php +++ b/plugins/jetpack/modules/likes/jetpack-likes-settings.php @@ -1,5 +1,7 @@ <?php +use Automattic\Jetpack\Sync\Settings; + class Jetpack_Likes_Settings { function __construct() { $this->in_jetpack = ! ( defined( 'IS_WPCOM' ) && IS_WPCOM ); @@ -269,8 +271,7 @@ class Jetpack_Likes_Settings { * similar logic and filters apply here, too. */ function is_likes_visible() { - require_once JETPACK__PLUGIN_DIR . '/sync/class.jetpack-sync-settings.php'; - if ( Jetpack_Sync_Settings::is_syncing() ) { + if ( Settings::is_syncing() ) { return false; } |