WordPress.org

Make WordPress Core

Ticket #23284: 23284.2.diff

File 23284.2.diff, 551 bytes (added by nacin, 7 years ago)

For 3.5

  • wp-includes/functions.php

     
    655655        else
    656656                $frag = '';
    657657
    658         if ( 0 === stripos( 'http://', $uri ) ) {
     658        if ( 0 === stripos( $uri, 'http://' ) ) {
    659659                $protocol = 'http://';
    660660                $uri = substr( $uri, 7 );
    661         } elseif ( 0 === stripos( 'https://', $uri ) ) {
     661        } elseif ( 0 === stripos( $uri, 'https://' ) ) {
    662662                $protocol = 'https://';
    663663                $uri = substr( $uri, 8 );
    664664        } else {