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:
Tony Volpe
2023-12-04 23:08:14 +00:00
parent 8c9b1312bc
commit 8f4b5efda6
4766 changed files with 185592 additions and 239967 deletions

View File

@@ -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 = [];