[wp-trac] [WordPress Trac] #22775: Create a wp.media.frames object

WordPress Trac noreply at wordpress.org
Thu Dec 6 04:49:20 UTC 2012


#22775: Create a wp.media.frames object
------------------------------+--------------------------
 Reporter:  koopersmith       |       Type:  defect (bug)
   Status:  new               |   Priority:  normal
Milestone:  3.5               |  Component:  Media
  Version:  trunk             |   Severity:  normal
 Keywords:  has-patch commit  |
------------------------------+--------------------------
 To encourage plugins to share their media frames, but not pollute the
 window or wp.media objects with media frame instances, let's give plugins
 a canonical place to put their stuff.

 For example:

 {{{
 wp.media.frames.customHeader = wp.media();
 }}}

 Also, we should add `wp.media.attachment( id )` as a shortcut to
 `wp.media.model.Attachment.get( id )`.

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


More information about the wp-trac mailing list