Make WordPress Core


Ignore:
Timestamp:
09/05/2013 04:33:50 PM (11 years ago)
Author:
wonderboymusic
Message:

Remove lingering instances of call time pass-by-reference, limited to instances of callable - use $this instead of &$this.

Props jdgrimes.
See #25160.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesTheme.php

    r25002 r25254  
    1111        $GLOBALS['wp_theme_directories'] = array( WP_CONTENT_DIR . '/themes', $this->theme_root );
    1212
    13         add_filter('theme_root', array(&$this, '_theme_root'));
    14         add_filter( 'stylesheet_root', array(&$this, '_theme_root') );
    15         add_filter( 'template_root', array(&$this, '_theme_root') );
     13        add_filter('theme_root', array($this, '_theme_root'));
     14        add_filter( 'stylesheet_root', array($this, '_theme_root') );
     15        add_filter( 'template_root', array($this, '_theme_root') );
    1616
    1717        // clear caches
     
    2222    function tearDown() {
    2323        $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir;
    24         remove_filter('theme_root', array(&$this, '_theme_root'));
    25         remove_filter( 'stylesheet_root', array(&$this, '_theme_root') );
    26         remove_filter( 'template_root', array(&$this, '_theme_root') );
     24        remove_filter('theme_root', array($this, '_theme_root'));
     25        remove_filter( 'stylesheet_root', array($this, '_theme_root') );
     26        remove_filter( 'template_root', array($this, '_theme_root') );
    2727
    2828        wp_clean_themes_cache();
Note: See TracChangeset for help on using the changeset viewer.