mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Objects no longer need to be explicitly passed by ref to call_user_func*() to be callable. Props wonderboymusic. fixes #21865
git-svn-id: https://develop.svn.wordpress.org/trunk@22118 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -152,15 +152,15 @@ class WP_Widget {
|
||||
}
|
||||
|
||||
function _get_display_callback() {
|
||||
return array(&$this, 'display_callback');
|
||||
return array($this, 'display_callback');
|
||||
}
|
||||
|
||||
function _get_update_callback() {
|
||||
return array(&$this, 'update_callback');
|
||||
return array($this, 'update_callback');
|
||||
}
|
||||
|
||||
function _get_form_callback() {
|
||||
return array(&$this, 'form_callback');
|
||||
return array($this, 'form_callback');
|
||||
}
|
||||
|
||||
/** Generate the actual widget content.
|
||||
@@ -317,7 +317,7 @@ class WP_Widget_Factory {
|
||||
var $widgets = array();
|
||||
|
||||
function WP_Widget_Factory() {
|
||||
add_action( 'widgets_init', array( &$this, '_register_widgets' ), 100 );
|
||||
add_action( 'widgets_init', array( $this, '_register_widgets' ), 100 );
|
||||
}
|
||||
|
||||
function register($widget_class) {
|
||||
|
||||
Reference in New Issue
Block a user