Make WordPress Core

Ticket #20506: edit-form-fix.diff

File edit-form-fix.diff, 808 bytes (added by griffinjt, 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 $screen_layout_columns = (int) $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 ) : ?>