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/widgets.php

    r19684 r22118  
    153153
    154154    function _get_display_callback() {
    155         return array(&$this, 'display_callback');
     155        return array($this, 'display_callback');
    156156    }
    157157
    158158    function _get_update_callback() {
    159         return array(&$this, 'update_callback');
     159        return array($this, 'update_callback');
    160160    }
    161161
    162162    function _get_form_callback() {
    163         return array(&$this, 'form_callback');
     163        return array($this, 'form_callback');
    164164    }
    165165
     
    318318
    319319    function WP_Widget_Factory() {
    320         add_action( 'widgets_init', array( &$this, '_register_widgets' ), 100 );
     320        add_action( 'widgets_init', array( $this, '_register_widgets' ), 100 );
    321321    }
    322322
Note: See TracChangeset for help on using the changeset viewer.