Make WordPress Core


Ignore:
Timestamp:
02/28/2016 02:12:13 AM (8 years ago)
Author:
johnbillion
Message:

Rewrite Rules: Ensure url_to_postid() operates as expected when it's used in the context of another site within a Multisite network that uses mixed URL schemes.

Fixes #35531

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rewrite.php

    r36307 r36750  
    488488
    489489    // Set the correct URL scheme.
    490     $url = set_url_scheme( $url );
     490    $scheme = parse_url( home_url(), PHP_URL_SCHEME );
     491    $url = set_url_scheme( $url, $scheme );
    491492
    492493    // Add 'www.' if it is absent and should be there
Note: See TracChangeset for help on using the changeset viewer.