PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/helpers/schema/article-helper.php +1 -12 18.4.1 → trunk View file →
@@ -14,20 +14,9 @@
14 14 *
15 15 * @return bool True if it has Article schema, false if not.
16 16 */
17 17 public function is_article_post_type( $post_type = null ) {
18 - if ( \is_null( $post_type ) ) {
19 - $post_type = \get_post_type();
20 - }
21 -
22 - /**
23 - * Filter: 'wpseo_schema_article_post_types' - Allow changing for which post types we output Article schema.
24 - *
25 - * @deprecated 17.6 - Just enable support for authors for the desired post type.
26 - *
27 - * @api string[] $post_types The post types for which we output Article.
28 - */
29 - \apply_filters_deprecated( 'wpseo_schema_article_post_types', [ [ 'post' ] ], 'WPSEO 17.6', '', 'Every post type supporting authors will automatically have the Article schema enabled.' );
18 + $post_type ??= \get_post_type();
30 19
31 20 return $this->is_author_supported( $post_type );
32 21 }
33 22