View mode is only a screen option for posts lists.

see #22222.

Built from https://develop.svn.wordpress.org/trunk@35461


git-svn-id: http://core.svn.wordpress.org/trunk@35425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-10-30 21:03:28 +00:00
parent 263b2890d4
commit c69d749c75
2 changed files with 8 additions and 1 deletions

View File

@ -1194,6 +1194,13 @@ final class WP_Screen {
* @since 4.4.0 * @since 4.4.0
*/ */
public function render_view_mode() { public function render_view_mode() {
$screen = get_current_screen();
// Currently only enabled for posts lists
if ( 'edit' !== $screen->base ) {
return;
}
/** /**
* Filter the post types that have different view mode options. * Filter the post types that have different view mode options.
* *

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-beta2-35460'; $wp_version = '4.4-beta2-35461';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.