mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Fix media form error display. Props andyblackwell. fixes #13810
git-svn-id: http://svn.automattic.com/wordpress/trunk@16812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e000cbf83a
commit
a821a154f0
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user