WordPress.org

Make WordPress Core

Changeset 35461


Ignore:
Timestamp:
10/30/2015 09:02:35 PM (4 years ago)
Author:
helen
Message:

View mode is only a screen option for posts lists.

see #22222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-screen.php

    r35357 r35461  
    11951195     */
    11961196    public function render_view_mode() {
     1197        $screen = get_current_screen();
     1198
     1199        // Currently only enabled for posts lists
     1200        if ( 'edit' !== $screen->base ) {
     1201            return;
     1202        }
     1203
    11971204        /**
    11981205         * Filter the post types that have different view mode options.
Note: See TracChangeset for help on using the changeset viewer.