Make WordPress Core


Ignore:
Timestamp:
09/05/2013 04:33:50 PM (12 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/src/wp-admin/custom-header.php

    r25135 r25254  
    8585            return;
    8686
    87         $this->page = $page = add_theme_page(__('Header'), __('Header'), 'edit_theme_options', 'custom-header', array(&$this, 'admin_page'));
    88 
    89         add_action("admin_print_scripts-$page", array(&$this, 'js_includes'));
    90         add_action("admin_print_styles-$page", array(&$this, 'css_includes'));
    91         add_action("admin_head-$page", array(&$this, 'help') );
    92         add_action("admin_head-$page", array(&$this, 'take_action'), 50);
    93         add_action("admin_head-$page", array(&$this, 'js'), 50);
     87        $this->page = $page = add_theme_page(__('Header'), __('Header'), 'edit_theme_options', 'custom-header', array($this, 'admin_page'));
     88
     89        add_action("admin_print_scripts-$page", array($this, 'js_includes'));
     90        add_action("admin_print_styles-$page", array($this, 'css_includes'));
     91        add_action("admin_head-$page", array($this, 'help') );
     92        add_action("admin_head-$page", array($this, 'take_action'), 50);
     93        add_action("admin_head-$page", array($this, 'js'), 50);
    9494        if ( $this->admin_header_callback )
    9595            add_action("admin_head-$page", $this->admin_header_callback, 51);
Note: See TracChangeset for help on using the changeset viewer.