Make WordPress Core

Changeset 41929


Ignore:
Timestamp:
10/18/2017 09:47:39 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Clean up $_REQUEST and $GLOBALS after modifying them in _test_list_hierarchical_page().

Props birgire.
Fixes #42044.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesListTable.php

    r40297 r41929  
    186186                $output = ob_get_clean();
    187187
     188                // Clean up.
     189                unset( $_REQUEST['paged'] );
     190                unset( $GLOBALS['per_page'] );
     191
    188192                preg_match_all( '|<tr[^>]*>|', $output, $matches );
    189193
Note: See TracChangeset for help on using the changeset viewer.