From 63c40f644d7f36e8467b1cc68e7b81527f089457 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 27 Apr 2009 16:09:49 +0000 Subject: [PATCH] Remove call-time pass-by-ref. Props jbsil. see #9651 git-svn-id: http://svn.automattic.com/wordpress/trunk@11097 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/widgets.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 5a8678014..35fe05f3b 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -167,7 +167,7 @@ class WP_Widget { if ( array_key_exists( $this->number, $settings ) ) { $settings = $settings[$this->number]; // filters the widget's settings, return false to stop displaying the widget - $settings = apply_filters('widget_display_callback', $settings, &$this); + $settings = apply_filters('widget_display_callback', $settings, $this); if ( false !== $settings ) $this->widget($args, $settings); } @@ -228,7 +228,7 @@ class WP_Widget { $instance = $this->update($new_instance, array()); // filters the widget's settings before saving, return false to cancel saving (keep the old settings if updating) - $instance = apply_filters('widget_update_callback', $instance, $new_instance, &$this); + $instance = apply_filters('widget_update_callback', $instance, $new_instance, $this); if ( false !== $instance ) $all_instances[$number] = $instance; } @@ -258,7 +258,7 @@ class WP_Widget { } // filters the widget admin form before displaying, return false to stop displaying it - $instance = apply_filters('widget_form_callback', $instance, &$this); + $instance = apply_filters('widget_form_callback', $instance, $this); if ( false !== $instance ) $this->form($instance); }