#25216 closed enhancement (fixed)
Make the redirect from post-new to media-new filterable
| Reported by: | DrewAPicture | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Administration | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description (last modified by )
Can we please make it possible to cancel the redirect from post-new.php?post_type=attachment to media-new.php added in 3.5?
There's a nice UI on that screen there I'd like to be able to leverage for something, but it's currently inaccessible due to the redirect and exit in post-new.php.
Patch attached.
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)
In 25216.diff I simply check whether the redirect was successful, then exit. This clears the way to "canceling" the redirect via the
wp_redirectfilter.