WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/04/2012 08:00:16 PM (9 years ago)
Author:
ryan
Message:

Objects no longer need to be explicitly passed by ref to call_user_func*() to be callable. Props wonderboymusic. fixes #21865

File:
1 edited

Legend:

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

    r21978 r22118  
    537537        $this->alt_option_name = 'widget_recent_entries';
    538538
    539         add_action( 'save_post', array(&$this, 'flush_widget_cache') );
    540         add_action( 'deleted_post', array(&$this, 'flush_widget_cache') );
    541         add_action( 'switch_theme', array(&$this, 'flush_widget_cache') );
     539        add_action( 'save_post', array($this, 'flush_widget_cache') );
     540        add_action( 'deleted_post', array($this, 'flush_widget_cache') );
     541        add_action( 'switch_theme', array($this, 'flush_widget_cache') );
    542542    }
    543543
     
    638638
    639639        if ( is_active_widget(false, false, $this->id_base) )
    640             add_action( 'wp_head', array(&$this, 'recent_comments_style') );
    641 
    642         add_action( 'comment_post', array(&$this, 'flush_widget_cache') );
    643         add_action( 'transition_comment_status', array(&$this, 'flush_widget_cache') );
     640            add_action( 'wp_head', array($this, 'recent_comments_style') );
     641
     642        add_action( 'comment_post', array($this, 'flush_widget_cache') );
     643        add_action( 'transition_comment_status', array($this, 'flush_widget_cache') );
    644644    }
    645645
Note: See TracChangeset for help on using the changeset viewer.