[wp-trac] [WordPress Trac] #24969: wp_redirect must return true

WordPress Trac noreply at wordpress.org
Tue Aug 6 16:56:35 UTC 2013


#24969: wp_redirect must return true
--------------------------+-----------------------------
 Reporter:  tivnet        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  trivial       |   Keywords:  has-patch
--------------------------+-----------------------------
 A code like this one
 {{{
 if(wp_redirect('/', 301)){
         error_log('redirected');
 }
 }}}
 won't work because in the case of success, `wp_redirect` returns NULL,
 while it must return a boolean value (`true` if all was OK)

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24969>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list