Opened 14 years ago
Closed 14 years ago
#22775 closed defect (bug) (fixed)
Create a wp.media.frames object
| Reported by: | koopersmith | Owned by: | koopersmith |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Media | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Also, adds frame caching to custom header, which works the same way as in custom background.