Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#57464 closed defect (bug) (fixed)

non-existant filter referenced in the DocBlock of wp_safe_redirect() and wp_redirect()

Reported by: pbiron Owned by: audrasjb
Priority: normal Milestone: 6.2
Component: HTTP API Version: 4.6
Severity: normal Keywords: needs-patch
Cc: Focuses: docs

Description

The DocBlocks of wp_safe_redirect() and wp_redirect() reference a wp_redirect_location filter, which doesn't exist.

I'm not sure what filter is intended, but maybe either wp_redirect_status or wp_safe_redirect_fallback?

Change History (6)

#1 @pbiron
4 years ago

  • Focuses docs added

#2 @audrasjb
4 years ago

  • Owner set to audrasjb
  • Status newreviewing

#3 follow-up: @audrasjb
4 years ago

  • Keywords needs-patch added
  • Milestone Awaiting Review6.2
  • Version5.1

Introduced in [42206].

We can probably completely remove this reference :)

#4 in reply to: ↑ 3 @pbiron
4 years ago

Replying to audrasjb:

Introduced in [42206].

We can probably completely remove this reference :)

Would probably be good to hear from @Drivingralle and/or @johnbillion as to the original intention.

#5 @SergeyBiryukov
4 years ago

  • Version 5.14.6

It looks like the wp_redirect_location filter reference was originally introduced in [37863], while [42206] copied it from wp_redirect() to wp_safe_redirect().

From my reading, wp_redirect_status appears to be the intended reference instead.

#6 @johnbillion
4 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 55069:

HTTP API: Correct the name of a filter referenced in the docs for wp_redirect() and wp_safe_redirect().

Props pbiron, audrasjb, SergeyBiryukov

Fixes #57464

Note: See TracTickets for help on using tickets.