Ticket #47439: 47439.patch
File 47439.patch, 823 bytes (added by , 6 years ago) |
---|
-
includes/abstract-testcase.php
707 707 // from all over the place (globals, GET, etc), which makes it tricky 708 708 // to run them more than once without very carefully clearing everything 709 709 $_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 ) { 711 711 if ( isset( $GLOBALS[ $v ] ) ) { 712 712 unset( $GLOBALS[ $v ] ); 713 713 }