From 3e57adcf39adcb64d703be2cb3c9aa7a5547ef65 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 9 Dec 2015 16:16:07 +0000 Subject: [PATCH] Docs: Move the hook doc for the `view_mode_post_types` filter to directly precede the `apply_filters()` line. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@35844 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-screen.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-screen.php b/src/wp-admin/includes/class-wp-screen.php index 398bb07386..0582473418 100644 --- a/src/wp-admin/includes/class-wp-screen.php +++ b/src/wp-admin/includes/class-wp-screen.php @@ -1201,6 +1201,8 @@ final class WP_Screen { return; } + $view_mode_post_types = get_post_types( array( 'hierarchical' => false, 'show_ui' => true ) ); + /** * Filter the post types that have different view mode options. * @@ -1209,7 +1211,6 @@ final class WP_Screen { * @param array $view_mode_post_types Array of post types that can change view modes. * Default hierarchical post types with show_ui on. */ - $view_mode_post_types = get_post_types( array( 'hierarchical' => false, 'show_ui' => true ) ); $view_mode_post_types = apply_filters( 'view_mode_post_types', $view_mode_post_types ); if ( ! in_array( $this->post_type, $view_mode_post_types ) ) {