[wp-trac] [WordPress Trac] #15518: Exit After wp_redirect

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 17 01:32:30 UTC 2012


#15518: Exit After wp_redirect
--------------------------+-----------------------
 Reporter:  filosofo      |       Owner:  filosofo
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.1
Component:  General       |     Version:  3.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by iandunn):

 Ok, I see your point about the backwards-compatibility issues. Maybe the
 best way forward would be to have wp_redirect() accept a bool parameter to
 determine whether or not it redirects, and have it be false by default.
 Then, create a new function like wp_redirect_exit(), which calls
 wp_redirect( true ), and then promote wp_redirect_exit() on the Codex and
 elsewhere as the function that plugins/themes should be using unless they
 actually need to continue processing. I can create a ticket for that if
 you think it's a good idea.

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


More information about the wp-trac mailing list