Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#25215 closed defect (bug) (fixed)

Filter docs for wp_redirect()

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

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 11 years ago.

Download all attachments as: .zip

Change History (2)

@DrewAPicture
11 years ago

#1 @SergeyBiryukov
11 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 25230:

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

Note: See TracTickets for help on using tickets.