Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#25215 closed defect (bug) (fixed)

Filter docs for wp_redirect()

Reported by: DrewAPicture Owned by: SergeyBiryukov
Priority: normal Milestone: 3.7
Component: Inline Docs Version: 3.1
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

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.

Attachments (1)

25215.diff (1.4 KB ) - added by DrewAPicture 13 years ago.

Download all attachments as: .zip

Change History (2)

@DrewAPicture
13 years ago

#1 @SergeyBiryukov
13 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 25230:

Add phpdoc for 'wp_redirect' and 'wp_redirect_status' filters. props DrewAPicture. fixes #25215.

Note: See TracTickets for help on using tickets.