Make WordPress Core


Ignore:
Timestamp:
08/25/2011 10:55:39 PM (10 years ago)
Author:
azaozz
Message:

Improve auto column switching for post.php, see #18198

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r18581 r18607  
    18741874    $num = $wp_current_screen_options['layout_columns']['max'];
    18751875
    1876     if ( ! $screen_layout_columns && $screen_layout_columns !== 0 ) {
     1876    if ( ! $screen_layout_columns ) {
    18771877        if ( isset($wp_current_screen_options['layout_columns']['default']) )
    18781878            $screen_layout_columns = $wp_current_screen_options['layout_columns']['default'];
     
    18871887        ++$i;
    18881888    }
    1889     $return .= "<label><input type='radio' id='wp_auto_columns' name='screen_columns' value='0'" . ( ($screen_layout_columns === '0') ? " checked='checked'" : "" ) . " />" . __('auto') . "</label>\n";
     1889    $return .= "<label><input type='radio' id='wp_auto_columns' name='screen_columns' value='auto'" . ( ($screen_layout_columns == 'auto') ? " checked='checked'" : "" ) . " />" . __('auto') . "</label>\n";
    18901890    $return .= "</div>\n";
    18911891    return $return;
Note: See TracChangeset for help on using the changeset viewer.