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

WordPress Trac wp-trac at lists.automattic.com
Tue May 17 15:40:11 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 draca):

 Yes, that can be done as a workaround.

 I believe the fix is still relevant as it's better to return a value that
 will be interpreted as true on success so the simpler form of the
 condition clause can be used.

 Alternatively, the function could return the value of $location.

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


More information about the wp-trac mailing list