View mode is only a screen option for posts lists.
see #22222. git-svn-id: https://develop.svn.wordpress.org/trunk@35461 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0b05c7aa24
commit
a701118676
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user