Opened 14 years ago
Closed 14 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Media | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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)
#5
@
14 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
@
14 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Once more, minus compulsive formatting