Make WordPress Core

Changeset 30253


Ignore:
Timestamp:
11/06/2014 07:15:18 AM (10 years ago)
Author:
nacin
Message:

Revert [28610] in order to avoid infinite redirect loops on reverse proxies which proxy from HTTPS to HTTP.

Merges [30090] to the 4.0 branch.

fixes #28610.

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

  • branches/4.0/src/wp-includes/canonical.php

    r29663 r30253  
    361361        unset($redirect['port']);
    362362
    363     if ( ! empty( $user_home['scheme'] ) && $user_home['scheme'] === 'https' ) {
    364         $redirect['scheme'] = 'https';
    365     }
    366 
    367363    // trailing /index.php
    368364    $redirect['path'] = preg_replace('|/' . preg_quote( $wp_rewrite->index, '|' ) . '/*?$|', '/', $redirect['path']);
     
    422418        $redirect['host'] = $original['host'];
    423419
    424     $compare_original = array( $original['scheme'], $original['host'], $original['path'] );
     420    $compare_original = array( $original['host'], $original['path'] );
    425421
    426422    if ( !empty( $original['port'] ) )
     
    430426        $compare_original[] = $original['query'];
    431427
    432     $compare_redirect = array( $redirect['scheme'], $redirect['host'], $redirect['path'] );
     428    $compare_redirect = array( $redirect['host'], $redirect['path'] );
    433429
    434430    if ( !empty( $redirect['port'] ) )
Note: See TracChangeset for help on using the changeset viewer.