| @@ -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 | |