Ticket #20506: 20506.patch
File 20506.patch, 2.8 KB (added by , 13 years ago) |
---|
-
wp-admin/edit-form-advanced.php
243 243 require_once('./admin-header.php'); 244 244 ?> 245 245 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'; ?>"> 247 247 <?php screen_icon(); ?> 248 248 <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> 249 249 <?php if ( $notice ) : ?> … … 277 277 278 278 <div id="poststuff"> 279 279 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'; ?>"> 281 281 <div id="post-body-content"> 282 282 <?php if ( post_type_supports($post_type, 'title') ) { ?> 283 283 <div id="titlediv"> -
wp-admin/edit-link-form.php
57 57 require_once ('admin-header.php'); 58 58 ?> 59 59 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'; ?>"> 61 61 <?php screen_icon(); ?> 62 62 <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> 63 63 … … 77 77 78 78 <div id="poststuff"> 79 79 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'; ?>"> 81 81 <div id="post-body-content"> 82 82 <div id="namediv" class="stuffbox"> 83 83 <h3><label for="link_name"><?php _ex('Name', 'link name') ?></label></h3> -
wp-admin/includes/dashboard.php
196 196 global $screen_layout_columns; 197 197 198 198 $screen = get_current_screen(); 199 $class = 'columns-' . $screen_layout_columns; 199 if ( !empty( $screen_layout_columns ) ) 200 $class = 'columns-' . $screen_layout_columns; 200 201 201 202 ?> 202 203 <div id="dashboard-widgets" class="metabox-holder <?php echo $class; ?>">