Make WordPress Core


Ignore:
Timestamp:
08/22/2011 07:41:11 PM (12 years ago)
Author:
azaozz
Message:

Auto column switching (post.php only for now), see #18198

File:
1 edited

Legend:

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

    r18577 r18581  
    18741874    $num = $wp_current_screen_options['layout_columns']['max'];
    18751875
    1876     if ( ! $screen_layout_columns ) {
     1876    if ( ! $screen_layout_columns && $screen_layout_columns !== 0 ) {
    18771877        if ( isset($wp_current_screen_options['layout_columns']['default']) )
    18781878            $screen_layout_columns = $wp_current_screen_options['layout_columns']['default'];
    18791879        else
    1880             $screen_layout_columns = 2;
     1880            $screen_layout_columns = '0';
    18811881    }
    18821882
     
    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";
    18891890    $return .= "</div>\n";
    18901891    return $return;
Note: See TracChangeset for help on using the changeset viewer.