[wp-trac] [WordPress Trac] #25207: Restore the ability to short-circuit core redirects
WordPress Trac
noreply at wordpress.org
Mon Sep 2 12:41:17 UTC 2013
#25207: Restore the ability to short-circuit core redirects
--------------------------+----------------------
Reporter: DrewAPicture | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.1
Severity: normal | Resolution: wontfix
Keywords: has-patch |
--------------------------+----------------------
Changes (by DrewAPicture):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
Replying to [comment:2 SergeyBiryukov]:
> Yes, there are probably a lot of instances where the redirect should
never be canceled.
>
> If there are redirects that can be canceled for a valid use case, I'd
suggest to deal with them on a case by case basis.
Fair enough.
My original use-case was to cancel the redirect to media-new.php from
post-new.php?post_type=attachment (which I quickly found was impossible).
I guess we should remove the "allows the wp_redirect filter to cancel a
redirect" bit in `wp_redirect()` then. No longer possible post-3.1. I'll
create a separate ticket.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25207#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list