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

git-svn-id: https://develop.svn.wordpress.org/trunk@16812 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-12-08 19:44:48 +00:00
parent 15186d7ef1
commit dc673fbccd

View File

@ -106,7 +106,7 @@ case 'edit' :
<div class="media-single">
<div id='media-item-<?php echo $att_id; ?>' class='media-item'>
<?php echo get_media_item( $att_id, array( 'toggle' => false, 'send' => false, 'delete' => false, 'show_title' => false, 'errors' => $errors ) ); ?>
<?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 ) ); ?>
</div>
</div>