Make WordPress Core


Ignore:
Timestamp:
05/31/2019 02:06:27 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Add $current_screen to the list of globals to unset in WP_UnitTestCase_Base::go_to().

Props mauteri.
Fixes #47439.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/abstract-testcase.php

    r45418 r45486  
    708708        // to run them more than once without very carefully clearing everything
    709709        $_GET = $_POST = array();
    710         foreach ( array( 'query_string', 'id', 'postdata', 'authordata', 'day', 'currentmonth', 'page', 'pages', 'multipage', 'more', 'numpages', 'pagenow' ) as $v ) {
     710        foreach ( array( 'query_string', 'id', 'postdata', 'authordata', 'day', 'currentmonth', 'page', 'pages', 'multipage', 'more', 'numpages', 'pagenow', 'current_screen' ) as $v ) {
    711711            if ( isset( $GLOBALS[ $v ] ) ) {
    712712                unset( $GLOBALS[ $v ] );
Note: See TracChangeset for help on using the changeset viewer.