Merged in feature/MAW-855-import-code-into-aws (pull request #2)
code import from pantheon * code import from pantheon
This commit is contained in:
@@ -16,20 +16,6 @@ class WPSEO_Premium_Orphaned_Content_Support {
|
||||
* @return array The supported post types.
|
||||
*/
|
||||
public function get_supported_post_types() {
|
||||
/**
|
||||
* Filter: 'wpseo_orphaned_post_types' - Allows changes for the accessible post types.
|
||||
*
|
||||
* @deprecated 12.9.0. Use the {@see 'Yoast\WP\SEO\orphaned_post_types'} filter instead.
|
||||
*
|
||||
* @api array The accessible post types.
|
||||
*/
|
||||
$orphaned_post_types = apply_filters_deprecated(
|
||||
'wpseo_orphaned_post_types',
|
||||
[ WPSEO_Post_Type::get_accessible_post_types() ],
|
||||
'YoastSEO Premium 12.9.0',
|
||||
'Yoast\WP\SEO\orphaned_post_types'
|
||||
);
|
||||
|
||||
/**
|
||||
* Filter: 'Yoast\WP\SEO\orphaned_post_types' - Allows changes for the accessible post types.
|
||||
*
|
||||
@@ -39,7 +25,7 @@ class WPSEO_Premium_Orphaned_Content_Support {
|
||||
*
|
||||
* @api array The accessible post types.
|
||||
*/
|
||||
$orphaned_post_types = apply_filters( 'Yoast\WP\SEO\orphaned_post_types', $orphaned_post_types );
|
||||
$orphaned_post_types = apply_filters( 'Yoast\WP\SEO\orphaned_post_types', WPSEO_Post_Type::get_accessible_post_types() );
|
||||
|
||||
if ( ! is_array( $orphaned_post_types ) || empty( $orphaned_post_types ) ) {
|
||||
$orphaned_post_types = [];
|
||||
|
||||
Reference in New Issue
Block a user