diff options
Diffstat (limited to 'plugins/jetpack/modules/likes.php')
-rw-r--r-- | plugins/jetpack/modules/likes.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/likes.php b/plugins/jetpack/modules/likes.php index daf60d00..1a91899b 100644 --- a/plugins/jetpack/modules/likes.php +++ b/plugins/jetpack/modules/likes.php @@ -142,6 +142,19 @@ class Jetpack_Likes { } /** + * Stub for is_likes_visible, since some themes were calling it directly from this class + * + * @deprecated 5.4 + * @return bool + */ + function is_likes_visible() { + _deprecated_function( __METHOD__, 'jetpack-5.4', 'Jetpack_Likes_Settings()->is_likes_visible' ); + + $settings = new Jetpack_Likes_Settings(); + return $settings->is_likes_visible(); + } + + /** * Adds in the jetpack-targetable class so when we visit sharing#likes our like settings get highlighted by a yellow box * @param string $html row heading for the sharedaddy "which page" setting * @return string html with the jetpack-targetable class and likes id. tbody gets closed after the like settings |