WordPress.org

Make WordPress Core

Changeset 24149


Ignore:
Timestamp:
05/01/13 02:38:51 (2 years ago)
Author:
SergeyBiryukov
Message:

Avoid an undefined variable notice. fixes #24236.

File:
1 edited

Legend:

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

    r24148 r24149  
    156156    $format_class = " class='wp-format-{$post_format}'"; 
    157157 
    158  
    159158    $all_post_formats = array( 
    160159        'standard' => array ( 
     
    423422<div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>"> 
    424423<div id="post-body-content"<?php echo $format_class; ?>> 
     424<?php if ( ! empty( $all_post_formats ) ) : ?> 
    425425<div class="wp-post-format-ui<?php if ( ! $show_post_format_ui ) echo ' no-ui' ?>"> 
    426426    <div class="post-format-change"><span class="icon <?php echo esc_attr( 'wp-format-' . $post_format ); ?>"></span> <span class="post-format-description"><?php echo $all_post_formats[$post_format]['description']; ?></span></div> 
    427427</div> 
     428<?php endif; ?> 
    428429<?php if ( post_type_supports($post_type, 'title') ) { ?> 
    429430<div id="titlediv"> 
Note: See TracChangeset for help on using the changeset viewer.