We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2e2595 commit 0eb1b4fCopy full SHA for 0eb1b4f
src/wp-admin/includes/class-wp-screen.php
@@ -951,8 +951,9 @@ public function render_screen_meta() {
951
if ( $this->get_option( 'layout_columns' ) ) {
952
$this->columns = (int) get_user_option( "screen_layout_$this->id" );
953
954
- if ( ! $this->columns && $this->get_option( 'layout_columns', 'default' ) ) {
955
- $this->columns = (int) $this->get_option( 'layout_columns', 'default' );
+ $layout_columns = (int) $this->get_option( 'layout_columns', 'default' );
+ if ( ! $this->columns && $layout_columns ) {
956
+ $this->columns = $layout_columns;
957
}
958
959
$GLOBALS['screen_layout_columns'] = $this->columns; // Set the global for back-compat.
0 commit comments