mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 11:14:36 +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:
@@ -67,11 +67,11 @@ class Custom_Background {
|
||||
if ( ! current_user_can('edit_theme_options') )
|
||||
return;
|
||||
|
||||
$this->page = $page = add_theme_page(__('Background'), __('Background'), 'edit_theme_options', 'custom-background', array(&$this, 'admin_page'));
|
||||
$this->page = $page = add_theme_page(__('Background'), __('Background'), 'edit_theme_options', 'custom-background', array($this, 'admin_page'));
|
||||
|
||||
add_action("load-$page", array(&$this, 'admin_load'));
|
||||
add_action("load-$page", array(&$this, 'take_action'), 49);
|
||||
add_action("load-$page", array(&$this, 'handle_upload'), 49);
|
||||
add_action("load-$page", array($this, 'admin_load'));
|
||||
add_action("load-$page", array($this, 'take_action'), 49);
|
||||
add_action("load-$page", array($this, 'handle_upload'), 49);
|
||||
|
||||
if ( $this->admin_header_callback )
|
||||
add_action("admin_head-$page", $this->admin_header_callback, 51);
|
||||
|
||||
Reference in New Issue
Block a user