#25216 closed enhancement (fixed)
Make the redirect from post-new to media-new filterable
Reported by: | DrewAPicture | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
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.
In 25216.diff I simply check whether the redirect was successful, then exit. This clears the way to "canceling" the redirect via the
wp_redirect
filter.