Make WordPress Core

Ticket #36507: 36507.diff

File 36507.diff, 651 bytes (added by flixos90, 8 years ago)

a possible solution to fix the links

  • src/wp-includes/link-template.php

     
    32343234        else
    32353235                $url = set_url_scheme( 'http://' . $current_site->domain . $current_site->path, $scheme );
    32363236
     3237        $homeurl = get_option( 'home' );
     3238        $siteurl = get_option( 'siteurl' );
     3239        if ( untrailingslashit( $homeurl ) !== untrailingslashit( $siteurl ) )
     3240                $url .= trailingslashit( substr( $siteurl, strlen( trailingslashit( $homeurl ) ) ) );
     3241
    32373242        if ( $path && is_string( $path ) )
    32383243                $url .= ltrim( $path, '/' );
    32393244