Make WordPress Core


Ignore:
Timestamp:
12/04/2013 05:27:34 PM (11 years ago)
Author:
nacin
Message:

Include columns-# CSS class in wp_dashboard() for when the screen supports it.

props westi.
fixes #26354.

File:
1 edited

Legend:

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

    r26611 r26617  
    138138function wp_dashboard() {
    139139    $screen = get_current_screen();
     140    $columns = absint( $screen->get_columns() );
     141    $columns_css = '';
     142    if ( $columns ) {
     143        $columns_css = " columns-$columns";
     144    }
    140145
    141146?>
    142 <div id="dashboard-widgets" class="metabox-holder">
     147<div id="dashboard-widgets" class="metabox-holder<?php echo $columns_css; ?>">
    143148    <div id='postbox-container-1' class='postbox-container'>
    144149    <?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
Note: See TracChangeset for help on using the changeset viewer.