Make WordPress Core

Ticket #26354: 26354-php.diff

File 26354-php.diff, 686 bytes (added by westi, 11 years ago)

Simple patch to output the class the CSS supports

  • wp-admin/includes/dashboard.php

     
    143143 */
    144144function wp_dashboard() {
    145145        $screen = get_current_screen();
     146        $columns = absint( $screen->get_columns() );
     147        $columns_css = '';
     148        if ( $columns )
     149                $columns_css = ".columns-$columns";
    146150
    147151?>
    148 <div id="dashboard-widgets" class="metabox-holder">
     152<div id="dashboard-widgets<?php echo $columns_css; ?>" class="metabox-holder">
    149153        <div id='postbox-container-1' class='postbox-container'>
    150154        <?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
    151155        </div>