diff options
Diffstat (limited to 'plugins/jetpack/modules/seo-tools/class-jetpack-seo-utils.php')
-rw-r--r-- | plugins/jetpack/modules/seo-tools/class-jetpack-seo-utils.php | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/plugins/jetpack/modules/seo-tools/class-jetpack-seo-utils.php b/plugins/jetpack/modules/seo-tools/class-jetpack-seo-utils.php index c6d8c294..008d3a44 100644 --- a/plugins/jetpack/modules/seo-tools/class-jetpack-seo-utils.php +++ b/plugins/jetpack/modules/seo-tools/class-jetpack-seo-utils.php @@ -23,11 +23,9 @@ class Jetpack_SEO_Utils { /** * Used to check whether SEO tools are enabled for given site. * - * @param int $site_id Optional. Defaults to current blog id if not given. - * * @return bool True if SEO tools are enabled, false otherwise. */ - public static function is_enabled_jetpack_seo( $site_id = 0 ) { + public static function is_enabled_jetpack_seo() { /** * Can be used by SEO plugin authors to disable the conflicting output of SEO Tools. * @@ -41,13 +39,9 @@ class Jetpack_SEO_Utils { return false; } - if ( function_exists( 'has_any_blog_stickers' ) ) { - // For WPCOM simple sites. - if ( empty( $site_id ) ) { - $site_id = get_current_blog_id(); - } - - return has_any_blog_stickers( array( 'business-plan', 'ecommerce-plan' ), $site_id ); + // For WPcom simple sites. + if ( defined( 'IS_WPCOM' ) && IS_WPCOM && method_exists( 'Jetpack_Plan', 'supports' ) ) { + return Jetpack_Plan::supports( 'advanced-seo' ); } // For all Jetpack sites. |