Changeset 35258
- Timestamp:
- 10/18/2015 05:00:40 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r35257 r35258 127 127 128 128 function tearDown() { 129 global $wpdb, $wp_query, $ post;129 global $wpdb, $wp_query, $wp, $post; 130 130 $wpdb->query( 'ROLLBACK' ); 131 131 if ( is_multisite() ) { … … 135 135 } 136 136 $wp_query = new WP_Query(); 137 $wp = new WP(); 137 138 $post = null; 138 139 remove_theme_support( 'html5' ); … … 420 421 $GLOBALS['wp_the_query'] = new WP_Query(); 421 422 $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; 423 424 $public_query_vars = $GLOBALS['wp']->public_query_vars; 425 $private_query_vars = $GLOBALS['wp']->private_query_vars; 426 422 427 $GLOBALS['wp'] = new WP(); 428 $GLOBALS['wp']->public_query_vars = $public_query_vars; 429 $GLOBALS['wp']->private_query_vars = $private_query_vars; 430 423 431 _cleanup_query_vars(); 424 432
Note: See TracChangeset
for help on using the changeset viewer.