Make WordPress Core


Ignore:
Timestamp:
08/25/2011 10:55:39 PM (14 years ago)
Author:
azaozz
Message:

Improve auto column switching for post.php, see #18198

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r18570 r18607  
    194194?>
    195195
    196 <div class="wrap">
     196<div class="wrap columns-<?php echo esc_attr($screen_layout_columns);?>">
    197197<?php screen_icon(); ?>
    198198<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>
     
    223223?>
    224224
    225 <div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
     225<div id="poststuff" class="metabox-holder<?php echo 1 != $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
    226226<div id="side-info-column" class="inner-sidebar">
    227227
Note: See TracChangeset for help on using the changeset viewer.