mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Improve auto column switching for post.php, see #18198
git-svn-id: https://develop.svn.wordpress.org/trunk@18607 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1873,7 +1873,7 @@ function screen_layout($screen) {
|
||||
$screen_layout_columns = get_user_option("screen_layout_$screen->id");
|
||||
$num = $wp_current_screen_options['layout_columns']['max'];
|
||||
|
||||
if ( ! $screen_layout_columns && $screen_layout_columns !== 0 ) {
|
||||
if ( ! $screen_layout_columns ) {
|
||||
if ( isset($wp_current_screen_options['layout_columns']['default']) )
|
||||
$screen_layout_columns = $wp_current_screen_options['layout_columns']['default'];
|
||||
else
|
||||
@@ -1886,7 +1886,7 @@ function screen_layout($screen) {
|
||||
$return .= "<label><input type='radio' name='screen_columns' value='$i'" . ( ($screen_layout_columns == $i) ? " checked='checked'" : "" ) . " /> $i</label>\n";
|
||||
++$i;
|
||||
}
|
||||
$return .= "<label><input type='radio' id='wp_auto_columns' name='screen_columns' value='0'" . ( ($screen_layout_columns === '0') ? " checked='checked'" : "" ) . " />" . __('auto') . "</label>\n";
|
||||
$return .= "<label><input type='radio' id='wp_auto_columns' name='screen_columns' value='auto'" . ( ($screen_layout_columns == 'auto') ? " checked='checked'" : "" ) . " />" . __('auto') . "</label>\n";
|
||||
$return .= "</div>\n";
|
||||
return $return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user