Make WordPress Core

Ticket #47439: 47439.patch

File 47439.patch, 823 bytes (added by mauteri, 6 years ago)
  • includes/abstract-testcase.php

     
    707707                // from all over the place (globals, GET, etc), which makes it tricky
    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 ] );
    713713                        }