[wp-trac] [WordPress Trac] #23115: Refactor wp.media.gallery.attachments to accept an array of attachment ids rather than shortcode

WordPress Trac noreply at wordpress.org
Fri Jan 4 05:22:33 UTC 2013


#23115: Refactor wp.media.gallery.attachments to accept an array of attachment ids
rather than shortcode
-----------------------------+-------------------------
 Reporter:  nd987            |       Type:  enhancement
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Media
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+-------------------------
 In /wp-includes/js/media-editor.js, line 175, the
 wp.media.gallery.attachments method is too closely coupled to the
 shortcode. This makes it impossible to fetch Attachments without first
 creating a shortcode to pass in.

 A better approach would be to accept an array of attachment ids or a hash
 of properties; more than just shortcodes need to fetch Attachments by
 their ids.

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


More information about the wp-trac mailing list