Make WordPress Core

Changeset 858 in tests for trunk/wp-testlib/testcase.php


Ignore:
Timestamp:
07/02/2012 10:53:13 AM (14 years ago)
Author:
duck_
Message:

Always default $partsquery? to empty string if it's not set

Prevents a notice if go_to() is called with a URL without a query string or scheme.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-testlib/testcase.php

    r837 r858  
    9797                // parse the url query vars into $_GET
    9898                parse_str($parts['query'], $_GET);
    99             } else {
    100                 $parts['query'] = '';
    10199            }
     100        } else {
     101            $req = $url;
    102102        }
    103         else {
    104             $req = $url;
     103        if ( ! isset( $parts['query'] ) ) {
     104            $parts['query'] = '';
    105105        }
    106106
Note: See TracChangeset for help on using the changeset viewer.