media form errors not displaying on /wp-admin/media.php?action=edit&attachment_id=##
|Reported by:||andyblackwell||Owned by:||andyblackwell|
form errors not showing on the single media edit page:
This is due to the $errors array being passed incorrectly to the get_media_item() function in /wp-admin/media.php. The $errors array is sent back from media_upload_form_handler() as an array of error arrays having attachment ids as the key for each. Was simply an accident of passing the full array ($errors) rather than just the key needed ($errors[$attachment->ID]) causing a bad array merge later which is why the errors don't display. Probably happened because the full $errors array is passed to the plural get_media_items() function.
Looks like this bug has gone unnoticed since at least early 2008.