[wp-trac] [WordPress Trac] #23148: Add hook in wp_ajax_save_attachment for additional attachment fields

WordPress Trac noreply at wordpress.org
Tue Jan 8 19:25:08 UTC 2013


#23148: Add hook in wp_ajax_save_attachment for additional attachment fields
-----------------------------+--------------------------
 Reporter:  griffinjt        |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Media
  Version:  3.5              |   Severity:  normal
 Keywords:  needs-patch      |
-----------------------------+--------------------------
 As of now, `wp_ajax_save_attachment` only looks for the attachment title,
 caption, description and alt text fields. Without a hook, there is no way
 to extend the new media system properly and take advantage of the save
 functionality.

 There should be a hook provided at the end of this function (before the
 JSON response is sent back) that allows devs to update any additional
 attachment fields that have been rendered by extending the
 `media.view.Attachment.Details` subview.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23148>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list