Opened 9 months ago
Closed 9 months ago
#21654 closed defect (bug) (wontfix)
media.php media_buttons url has no apply_filters
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
I'm trying to change the default tab in the media upload iframe. Stepping through every call, the only way I could find is to change the URL that triggers the iframe, but the media_button function doesn't have an apply_filters so I can change the URL.
I fixed this and attached a patch.
Attachments (1)
Change History (3)
CircaLucid — 9 months ago
comment:1
SergeyBiryukov — 9 months ago
There's a filter in get_upload_iframe_src():
http://core.trac.wordpress.org/browser/tags/3.4.1/wp-admin/includes/media.php#L407
Note: See
TracTickets for help on using
tickets.

patch