Include columns-# CSS class in wp_dashboard() for when the screen supports it.
props westi. fixes #26354. Built from https://develop.svn.wordpress.org/trunk@26617 git-svn-id: http://core.svn.wordpress.org/trunk@26507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cd210390a2
commit
757a470708
|
@ -137,9 +137,14 @@ function _wp_dashboard_control_callback( $dashboard, $meta_box ) {
|
||||||
*/
|
*/
|
||||||
function wp_dashboard() {
|
function wp_dashboard() {
|
||||||
$screen = get_current_screen();
|
$screen = get_current_screen();
|
||||||
|
$columns = absint( $screen->get_columns() );
|
||||||
|
$columns_css = '';
|
||||||
|
if ( $columns ) {
|
||||||
|
$columns_css = " columns-$columns";
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div id="dashboard-widgets" class="metabox-holder">
|
<div id="dashboard-widgets" class="metabox-holder<?php echo $columns_css; ?>">
|
||||||
<div id='postbox-container-1' class='postbox-container'>
|
<div id='postbox-container-1' class='postbox-container'>
|
||||||
<?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
|
<?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue