Make WordPress Core

Ticket #34164: 34164.diff

File 34164.diff, 477 bytes (added by perezlabs, 8 years ago)

Added a simple patch based on the solution of @ramonxd and it works well.

  • src/wp-includes/http.php

     
    523523
    524524        $parsed_home = @parse_url( get_option( 'home' ) );
    525525
    526         $same_host = strtolower( $parsed_home['host'] ) === strtolower( $parsed_url['host'] );
     526        $same_host = strtolower( $parsed_url['host'] );
    527527
    528528        if ( ! $same_host ) {
    529529                $host = trim( $parsed_url['host'], '.' );