[wp-trac] [WordPress Trac] #22774: attachment_fields_to_save filter doesn't run for attachment saves (w/o alt text set)
WordPress Trac
noreply at wordpress.org
Thu Dec 6 05:20:25 UTC 2012
#22774: attachment_fields_to_save filter doesn't run for attachment saves (w/o alt
text set)
------------------------------+-----------------------
Reporter: sc0ttkclark | Owner: nacin
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.5
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+-----------------------
Comment (by nacin):
In the old modal, we were *always* sending back `$_POST['attachments'][ ID
][ field ]`. In the new modal, there might not be any fields. But we
should still run the filter, as get_attachment_fields_to_edit() allowed
for raw HTML to be inserted. (FUN.)
has-patch commit remains.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22774#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list