[wp-trac] [WordPress Trac] #25215: Filter docs for wp_redirect()

WordPress Trac noreply at wordpress.org
Mon Sep 2 13:09:24 UTC 2013

#25215: Filter docs for wp_redirect()
 Reporter:  DrewAPicture  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.7
Component:  Inline Docs   |    Version:  3.1
 Severity:  normal        |   Keywords:  has-patch
 In [16847] we added `exit` calls after most instances of `wp_redirect()`
 in core. This in-effect rendered it impossible to "cancel" most core
 redirects via the `wp_redirect` filter because the exit is executed
 whether the redirect was successful or not. See #25207.

 The attached patch adds doc blocks for the two filters in `wp_redirect()`,
 removing the "cancel" comment on returning false for no location.

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

More information about the wp-trac mailing list