| @@ -38,14 +38,12 @@ | ||
| 38 | 38 | if ( apply_filters( 'jetpack_disable_seo_tools', false ) ) { |
| 39 | 39 | return false; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - // For WPcom simple sites. | |
| 43 | - if ( defined( 'IS_WPCOM' ) && IS_WPCOM && method_exists( 'Jetpack_Plan', 'supports' ) ) { | |
| 44 | - return Jetpack_Plan::supports( 'advanced-seo' ); | |
| 42 | + if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { | |
| 43 | + return wpcom_site_has_feature( 'advanced-seo', get_current_blog_id() ); | |
| 45 | 44 | } |
| 46 | 45 | |
| 47 | - // For all Jetpack sites. | |
| 48 | 46 | return true; |
| 49 | 47 | } |
| 50 | 48 | |
| 51 | 49 | /** |
| @@ -126,6 +124,25 @@ | ||
| 126 | 124 | return $front_page_description; |
| 127 | 125 | } |
| 128 | 126 | |
| 129 | 127 | return ''; |
| 128 | + } | |
| 129 | + | |
| 130 | + /** | |
| 131 | + * Remove content within wp:query blocks. | |
| 132 | + * | |
| 133 | + * @uses jetpack_og_remove_query_blocks | |
| 134 | + * | |
| 135 | + * @since 14.9 | |
| 136 | + * | |
| 137 | + * @param string $content Post content. | |
| 138 | + * | |
| 139 | + * @return string Post content stripped from wp:query blocks. | |
| 140 | + */ | |
| 141 | + public static function remove_query_blocks( $content ) { | |
| 142 | + if ( ! function_exists( 'jetpack_og_remove_query_blocks' ) ) { | |
| 143 | + return $content; | |
| 144 | + } | |
| 145 | + | |
| 146 | + return jetpack_og_remove_query_blocks( $content ); | |
| 130 | 147 | } |
| 131 | 148 | } |