mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 17:44:25 +00:00
Remove lingering instances of call time pass-by-reference, limited to instances of callable - use $this instead of &$this.
Props jdgrimes. See #25160. git-svn-id: https://develop.svn.wordpress.org/trunk@25254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -10,9 +10,9 @@ class Tests_Admin_includesTheme extends WP_UnitTestCase {
|
||||
$this->orig_theme_dir = $GLOBALS['wp_theme_directories'];
|
||||
$GLOBALS['wp_theme_directories'] = array( WP_CONTENT_DIR . '/themes', $this->theme_root );
|
||||
|
||||
add_filter('theme_root', array(&$this, '_theme_root'));
|
||||
add_filter( 'stylesheet_root', array(&$this, '_theme_root') );
|
||||
add_filter( 'template_root', array(&$this, '_theme_root') );
|
||||
add_filter('theme_root', array($this, '_theme_root'));
|
||||
add_filter( 'stylesheet_root', array($this, '_theme_root') );
|
||||
add_filter( 'template_root', array($this, '_theme_root') );
|
||||
|
||||
// clear caches
|
||||
wp_clean_themes_cache();
|
||||
@@ -21,9 +21,9 @@ class Tests_Admin_includesTheme extends WP_UnitTestCase {
|
||||
|
||||
function tearDown() {
|
||||
$GLOBALS['wp_theme_directories'] = $this->orig_theme_dir;
|
||||
remove_filter('theme_root', array(&$this, '_theme_root'));
|
||||
remove_filter( 'stylesheet_root', array(&$this, '_theme_root') );
|
||||
remove_filter( 'template_root', array(&$this, '_theme_root') );
|
||||
remove_filter('theme_root', array($this, '_theme_root'));
|
||||
remove_filter( 'stylesheet_root', array($this, '_theme_root') );
|
||||
remove_filter( 'template_root', array($this, '_theme_root') );
|
||||
|
||||
wp_clean_themes_cache();
|
||||
unset( $GLOBALS['wp_themes'] );
|
||||
|
||||
Reference in New Issue
Block a user