Make WordPress Core

Opened 4 years ago

Last modified 2 years ago

#57724 new defect (bug)

redirect_canonical() may not work if site_url contains port number

Reported by: obache Owned by:
Priority: normal Milestone: Awaiting Review
Component: Canonical Version: 6.1.1
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

If site_url contains port number (for example, local test with http://localhost:8001/),
redirect_canonical() may not work as expected because port number is ignored when
constructing $redirect_url.

For example, "http://localhost:8001/category/name?paged=2" will not be redirect to
"http://localhost:8001/category/name/page/2".

Attachments (1)

patch.diff (535 bytes ) - added by obache 4 years ago.

Download all attachments as: .zip

Change History (3)

@obache
4 years ago

#1 @sakibmd
4 years ago

Patch looks fine. Thanks @obache

Note: See TracTickets for help on using tickets.