[wp-trac] [WordPress Trac] #25216: Make the redirect from post-new to media-new filterable

WordPress Trac noreply at wordpress.org
Mon Sep 2 13:39:19 UTC 2013


#25216: Make the redirect from post-new to media-new filterable
--------------------------+------------------------------
 Reporter:  DrewAPicture  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Old description:

> Can we please add a filter to 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.

New description:

 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.

--

Comment (by DrewAPicture):

 In [attachment: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.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25216#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list