Permalink
Browse files

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

git-svn-id: http://svn.automattic.com/wordpress/trunk@16812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent e000cbf commit a821a154f04666fca96ebb5a29304fa541c36d07 ryan committed Dec 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-admin/media.php
View
@@ -106,7 +106,7 @@
<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>

0 comments on commit a821a15

Please sign in to comment.