[wp-trac] [WordPress Trac] #17718: Don't redirect if user is already on port 80
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 7 11:31:40 UTC 2011
#17718: Don't redirect if user is already on port 80
--------------------------+-----------------------------
Reporter: davidcx | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1.3
Severity: normal | Keywords:
--------------------------+-----------------------------
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
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17718>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list