PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 All 504 releases
← All changes | modules/seo-tools/class-jetpack-seo-utils.php +21 -4 12.2.3 → 16.3-a.1 View file →
@@ -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 }