Make WordPress Core

Ticket #20506: 20506.patch

File 20506.patch, 2.8 KB (added by SergeyBiryukov, 13 years ago)
  • wp-admin/edit-form-advanced.php

     
    243243require_once('./admin-header.php');
    244244?>
    245245
    246 <div class="wrap columns-<?php echo (int) $screen_layout_columns ? (int) $screen_layout_columns : 'auto'; ?>">
     246<div class="wrap columns-<?php echo !empty( $screen_layout_columns ) ? (int) $screen_layout_columns : 'auto'; ?>">
    247247<?php screen_icon(); ?>
    248248<h2><?php echo esc_html( $title ); ?><?php if ( isset( $post_new_file ) ) : ?> <a href="<?php echo esc_url( $post_new_file ) ?>" class="add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a><?php endif; ?></h2>
    249249<?php if ( $notice ) : ?>
     
    277277
    278278<div id="poststuff">
    279279
    280 <div id="post-body" class="metabox-holder columns-<?php echo 1 == $screen_layout_columns ? '1' : '2'; ?>">
     280<div id="post-body" class="metabox-holder columns-<?php echo !empty( $screen_layout_columns ) && 1 == $screen_layout_columns ? '1' : '2'; ?>">
    281281<div id="post-body-content">
    282282<?php if ( post_type_supports($post_type, 'title') ) { ?>
    283283<div id="titlediv">
  • wp-admin/edit-link-form.php

     
    5757require_once ('admin-header.php');
    5858?>
    5959
    60 <div class="wrap columns-<?php echo (int) $screen_layout_columns ? (int) $screen_layout_columns : 'auto'; ?>">
     60<div class="wrap columns-<?php echo !empty( $screen_layout_columns ) ? (int) $screen_layout_columns : 'auto'; ?>">
    6161<?php screen_icon(); ?>
    6262<h2><?php echo esc_html( $title ); ?>  <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a></h2>
    6363
     
    7777
    7878<div id="poststuff">
    7979
    80 <div id="post-body" class="metabox-holder columns-<?php echo 1 == $screen_layout_columns ? '1' : '2'; ?>">
     80<div id="post-body" class="metabox-holder columns-<?php echo !empty( $screen_layout_columns ) && 1 == $screen_layout_columns ? '1' : '2'; ?>">
    8181<div id="post-body-content">
    8282<div id="namediv" class="stuffbox">
    8383<h3><label for="link_name"><?php _ex('Name', 'link name') ?></label></h3>
  • wp-admin/includes/dashboard.php

     
    196196        global $screen_layout_columns;
    197197
    198198        $screen = get_current_screen();
    199         $class = 'columns-' . $screen_layout_columns;
     199        if ( !empty( $screen_layout_columns ) )
     200                $class = 'columns-' . $screen_layout_columns;
    200201
    201202?>
    202203<div id="dashboard-widgets" class="metabox-holder <?php echo $class; ?>">