From c69d749c7563bdf95241efa0072bf8c422ca9ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Fri, 30 Oct 2015 21:03:28 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-screen.php | 7 +++++++ wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-screen.php b/wp-admin/includes/class-wp-screen.php index 13d59dc981..398bb07386 100644 --- a/wp-admin/includes/class-wp-screen.php +++ b/wp-admin/includes/class-wp-screen.php @@ -1194,6 +1194,13 @@ final class WP_Screen { * @since 4.4.0 */ 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. * diff --git a/wp-includes/version.php b/wp-includes/version.php index fbc4a520df..f3a8a41bc0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.