Make WordPress Core

Changeset 35030


Ignore:
Timestamp:
10/12/2015 03:03:43 PM (11 years ago)
Author:
boonebgorges
Message:

Fix incorrect setup in 'tag' query var test.

The test, introduced in [33724], was intended to demonstrate the behavior of
example.com?tag=foo routing. But an error in the test setup meant that a
URL-encoded tag object was being set as the value of 'tag'. Due to a quirk in
the way that parse_request() parses query vars, an object value for 'tag'
would inadvertently produce correct results in certain cases. But it's not a
usage we actively support, and it's not what was meant to be tested.

See #33532, #34262.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query.php

    r34810 r35030  
    252252
    253253                $url = add_query_arg( array(
    254                         'tag' => $t1,
     254                        'tag' => $t1->slug,
    255255                ), '/' );
    256256
Note: See TracChangeset for help on using the changeset viewer.