[wp-trac] [WordPress Trac] #20060: wp_redirect() doesn't exit
WordPress Trac
noreply at wordpress.org
Sat Oct 25 22:11:46 UTC 2014
#20060: wp_redirect() doesn't exit
------------------------------------------+------------------------------
Reporter: iandunn | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Security | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch close | Focuses:
------------------------------------------+------------------------------
Changes (by chriscct7):
* keywords: dev-feedback has-patch => dev-feedback has-patch close
Comment:
I'd question the usefulness of "wp_redirect_and_exit". It's not shorter
than simply calling wp_redirect then exiting, and the only people using it
would be those who know it exist, and why it exists, which means they know
that they need to exit. And given its shorter to write wp_redirect then
exit, no one would use it since those who know the function wouldn't use
it, and those who don't know the function wouldn't use it either (since
they won't know it exists). The only way this could be useful is if it was
called something shorter and anything shorter won't be intuitively named
as pointed out above.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20060#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list