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

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 11 15:01:21 UTC 2010


#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 aaroncampbell):

 Would it make more sense to add the exit to the end of the wp_redirect
 function?  I haven't checked out the cases where we need to execute code
 after the redirect, but maybe we could make an optional parameter that
 defaults to true and pass false in the cases where we DON'T want to exit?

 The advantage is that this will also fix the possible "unexpected
 behavior" for many plugins that use it.

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


More information about the wp-trac mailing list