mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Avoid an undefined index error in tests/phpunit/tests/dependencies/styles.php
See #25282. git-svn-id: https://develop.svn.wordpress.org/trunk@25376 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -8,6 +8,8 @@ class Tests_Dependencies_Styles extends WP_UnitTestCase {
|
||||
|
||||
function setUp() {
|
||||
parent::setUp();
|
||||
if ( empty( $GLOBALS['wp_styles'] ) )
|
||||
$GLOBALS['wp_styles'] = null;
|
||||
$this->old_wp_styles = $GLOBALS['wp_styles'];
|
||||
remove_action( 'wp_default_styles', 'wp_default_styles' );
|
||||
$GLOBALS['wp_styles'] = new WP_Styles();
|
||||
|
||||
Reference in New Issue
Block a user