[wp-trac] [WordPress Trac] #60209: X-Redirect-By type incomplete

WordPress Trac noreply at wordpress.org
Thu Feb 22 10:56:41 UTC 2024


#60209: X-Redirect-By type incomplete
--------------------------+-------------------------
 Reporter:  kkmuffme      |       Owner:  swissspidy
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.5
Component:  HTTP API      |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-------------------------
Changes (by swissspidy):

 * owner:  (none) => swissspidy
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57693" 57693]:
 {{{
 #!CommitTicketReference repository="" revision="57693"
 Docs: Improve docblock for `$x_redirect_by` param in `wp_redirect()`.

 The `$x_redirect_by` parameter is supported by `wp_redirect()` and
 `wp_safe_redirect()` to set the `X-Redirect-By` header.
 It can be modified via the `x_redirect_by` filter.

 This updates the docblock to clarify that `false` can be passed to disable
 sending the header, which was previously undocumented behavior.

 Props kkmuffme, swissspidy.
 Fixes #60209.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60209#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list