[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:08:52 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:  closed
 Priority:  normal            |   Milestone:  3.5
Component:  Media             |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by sc0ttkclark):

 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/

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22774#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list