WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#25215 closed defect (bug) (fixed)

Filter docs for wp_redirect()

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

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

Download all attachments as: .zip

Change History (2)

@DrewAPicture
6 years ago

#1 @SergeyBiryukov
6 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.