Make WordPress Core

Changeset 3897


Ignore:
Timestamp:
06/22/2006 03:40:28 AM (20 years ago)
Author:
ryan
Message:

Fix bug in add_query_arg when url like ​http://example.com (no trailing slash). Props skel to the ac.

File:
1 edited

Legend:

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

    r3894 r3897  
    701701                        $query = $parts[1];
    702702                }
    703         } else if ( strstr($uri, '/') ) {
     703        } else if ( !empty($protocol) || strstr($uri, '/') ) {
    704704                $base = $uri . '?';
    705705                $query = '';
Note: See TracChangeset for help on using the changeset viewer.