Opened 13 years ago
Closed 13 years ago
#22775 closed defect (bug) (fixed)
Create a wp.media.frames object
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.5 | Priority: | normal |
| Severity: | normal | Version: | 3.5 |
| Component: | Media | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
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 ).
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Also, adds frame caching to custom header, which works the same way as in custom background.