mirror of
git://develop.git.wordpress.org/
synced 2025-04-05 20:53:07 +02:00
Build/Test Tools: Follow-up to r53432.
Removes comments global resets from base test case. Follow-up to [53432]. See #54725,#55643. git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53434 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
16224b3353
commit
cff519be8e
@ -174,12 +174,6 @@ abstract class WP_UnitTestCase_Base extends PHPUnit_Adapter_TestCase {
|
||||
$GLOBALS[ $global ] = null;
|
||||
}
|
||||
|
||||
// Reset comment globals.
|
||||
$comment_globals = array( 'comment_alt', 'comment_depth', 'comment_thread_alt' );
|
||||
foreach ( $comment_globals as $global ) {
|
||||
$GLOBALS[ $global ] = null;
|
||||
}
|
||||
|
||||
/*
|
||||
* Reset $wp_sitemap global so that sitemap-related dynamic $wp->public_query_vars
|
||||
* are added when the next test runs.
|
||||
|
Loading…
x
Reference in New Issue
Block a user