Opened 12 years ago
Closed 12 years ago
#22774 closed defect (bug) (fixed)
attachment_fields_to_save filter doesn't run for attachment saves (w/o alt text set)
Reported by: | sc0ttkclark | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Media | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Currently, 3.5 trunk doesn't run the 'attachment_fields_to_save' filter when you don't set the alt text.
Attachments (3)
Change History (12)
#4
@
12 years ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
In 23088:
#5
@
12 years ago
As I review further, when saving an attachment this filter won't run because it has no attachments in the $post_data[ 'attachments' ]
As it is right now, it appears this won't work in conjunction with the old attachment_fields_to_edit:
http://www.billerickson.net/wordpress-add-custom-fields-media-gallery/
#7
@
12 years ago
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.
Note: See
TracTickets for help on using
tickets.
Once more, minus compulsive formatting