mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@48670 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1313,7 +1313,9 @@ final class WP_Screen {
|
||||
return;
|
||||
}
|
||||
|
||||
$mode = get_user_setting( 'posts_list_mode', 'list' );
|
||||
if ( ! isset( $mode ) ) {
|
||||
$mode = get_user_setting( 'posts_list_mode', 'list' );
|
||||
}
|
||||
|
||||
// This needs a submit button.
|
||||
add_filter( 'screen_options_show_submit', '__return_true' );
|
||||
|
||||
Reference in New Issue
Block a user