Make WordPress Core


Ignore:
Timestamp:
04/27/2009 04:09:49 PM (18 years ago)
Author:
ryan
Message:

Remove call-time pass-by-ref. Props jbsil. see #9651

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r11095 r11097  
    168168            $settings = $settings[$this->number];
    169169                        // filters the widget's settings, return false to stop displaying the widget
    170                         $settings = apply_filters('widget_display_callback', $settings, &$this);   
     170                        $settings = apply_filters('widget_display_callback', $settings, $this);   
    171171            if ( false !== $settings )
    172172                                $this->widget($args, $settings);
    … …  
    229229
    230230                                        // filters the widget's settings before saving, return false to cancel saving (keep the old settings if updating)
    231                                         $instance = apply_filters('widget_update_callback', $instance, $new_instance, &$this);
     231                                        $instance = apply_filters('widget_update_callback', $instance, $new_instance, $this);
    232232                                        if ( false !== $instance )
    233233                                                $all_instances[$number] = $instance;
    … …  
    259259
    260260                // filters the widget admin form before displaying, return false to stop displaying it
    261                 $instance = apply_filters('widget_form_callback', $instance, &$this);
     261                $instance = apply_filters('widget_form_callback', $instance, $this);
    262262                if ( false !== $instance )
    263263                        $this->form($instance);
Note: See TracChangeset for help on using the changeset viewer.