Make WordPress Core


Ignore:
Timestamp:
06/19/2013 08:36:46 AM (11 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.

Merges [24444] to the 3.5 branch.

fixes #23284.

Location:
branches/3.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5

  • branches/3.5/wp-includes/functions.php

    r24440 r24445  
    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.