[wp-trac] [WordPress Trac] #22868: broken backward attachment attributes save

WordPress Trac noreply at wordpress.org
Wed Dec 12 02:41:14 UTC 2012


#22868: broken backward attachment attributes save
--------------------------+------------------------------
 Reporter:  geminorum     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by geminorum):

 [http://core.trac.wordpress.org/browser/trunk/wp-includes/js/media-
 models.js#L315 wp.media.model.Attachment.saveCompat] sends id, post_id and
 nonce.

 [http://core.trac.wordpress.org/browser/trunk/wp-admin/includes/ajax-
 actions.php#L1915 wp_ajax_save_attachment_compat()] expects attachments,
 update-post_(post_id)

 so cannot use [http://core.trac.wordpress.org/browser/trunk/wp-
 admin/includes/ajax-actions.php#L1929 attachment_fields_to_save] to save
 extra data.

 it triggers by my theme framework, not published yet.

 unfamiliar with new js workflow, and sorry, don't know how to build a
 patch.

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


More information about the wp-trac mailing list