Opened 2 years ago
Last modified 7 months ago
#17718 new defect (bug)
Don't redirect if user is already on port 80
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Canonical | Version: | 3.1.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | mdhansen@… |
Description
If user is already using port 80 but $original['port'] is set to 80 anyway, do not send a needless redirect.
wp-includes/canonical.php line 324
change from
if ( !empty( $original['port'] ) )
change to
if ( !empty( $original['port'] ) && $original['port'] != 80 )
Fixes, for example, Nagios's check_http getting sent a redirect rather than the page content.
-davidc
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.

refreshed