[wp-trac] [WordPress Trac] #17472: wp_redirect() should return true on success

WordPress Trac wp-trac at lists.automattic.com
Tue May 17 14:01:48 UTC 2011


#17472: wp_redirect() should return true on success
--------------------------+------------------------------
 Reporter:  draca         |       Owner:  draca
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.1.2
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by duck_):

 How about doing this?

 {{{
 if ( wp_redirect($redirect_url) === false ) {
   // Handle redirect failure
 }
 }}}

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


More information about the wp-trac mailing list