Make WordPress Core


Ignore:
Timestamp:
07/28/2020 04:53:03 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Administration: Don't override the $mode global in WP_Screen::render_view_mode() if it's already set.

Follow-up to [48398], [48423], [48424], [48450].

See #49715.

File:
1 edited

Legend:

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

    r48668 r48670  
    13141314        }
    13151315
    1316         $mode = get_user_setting( 'posts_list_mode', 'list' );
     1316        if ( ! isset( $mode ) ) {
     1317            $mode = get_user_setting( 'posts_list_mode', 'list' );
     1318        }
    13171319
    13181320        // This needs a submit button.
Note: See TracChangeset for help on using the changeset viewer.