WordPress.org

Make WordPress Core

Changeset 16812


Ignore:
Timestamp:
12/08/10 19:44:48 (5 years ago)
Author:
ryan
Message:

Fix media form error display. Props andyblackwell. fixes #13810

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/media.php

    r16438 r16812  
    107107<div class="media-single"> 
    108108<div id='media-item-<?php echo $att_id; ?>' class='media-item'> 
    109 <?php echo get_media_item( $att_id, array( 'toggle' => false, 'send' => false, 'delete' => false, 'show_title' => false, 'errors' => $errors ) ); ?> 
     109<?php echo get_media_item( $att_id, array( 'toggle' => false, 'send' => false, 'delete' => false, 'show_title' => false, 'errors' => !empty($errors[$att_id]) ? $errors[$att_id] : null ) ); ?> 
    110110</div> 
    111111</div> 
Note: See TracChangeset for help on using the changeset viewer.