From a4cd391d501988d2577be66763f10ec9a960ee03 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 9 Dec 2015 16:17:27 +0000 Subject: [PATCH] Docs: Move the hook doc for the `view_mode_post_types` filter to directly precede the `apply_filters()` line. See #32246. Built from https://develop.svn.wordpress.org/trunk@35844 git-svn-id: http://core.svn.wordpress.org/trunk@35808 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-screen.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-screen.php b/wp-admin/includes/class-wp-screen.php index 398bb07386..0582473418 100644 --- a/wp-admin/includes/class-wp-screen.php +++ b/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 ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 53dcd13b3e..df3ad3610b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-35839'; +$wp_version = '4.5-alpha-35844'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.