[wp-trac] [WordPress Trac] #20060: wp_redirect() doesn't exit

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 17 17:47:14 UTC 2012


#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:  needs-patch dev-feedback  |
--------------------------------------+------------------------------

Comment (by nacin):

 Thus, rather than a parameter, it would need to be:

 {{{
 function wp_redirect_and_exit( $location, $status = 302 ) {
     wp_redirect( $location, $status );
     exit;
 }
 }}}

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


More information about the wp-trac mailing list