WordPress.org

Make WordPress Core

Changeset 24444


Ignore:
Timestamp:
06/19/2013 08:33:10 AM (6 years ago)
Author:
nacin
Message:

Use correct variable order in add_query_arg(). This had mostly just filled error logs; it also broke some obscure URL situations. see #23284.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r24439 r24444  
    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 );
Note: See TracChangeset for help on using the changeset viewer.