﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
13810,media form errors not displaying on /wp-admin/media.php?action=edit&attachment_id=##,andyblackwell,andyblackwell,"form errors not showing on the single media edit page:
/wp-admin/media.php?action=edit&attachment_id=##

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.

Patch included.",defect (bug),closed,normal,3.1,Administration,3.0,normal,fixed,has-patch commit,
