[wp-hackers] call time pass by reference (PHP 5.4 in-compatibilities)
wp at andrewnacin.com
Fri Dec 28 23:31:30 UTC 2012
On Fri, Dec 28, 2012 at 6:15 PM, Vid Luther <vid at zippykid.com> wrote:
> I looked a little more closely, and realized they have a hacked version of
> 1.2.6 running in prod..
> Let me look a little more closely, this may be something I need to work
> with JJJ on directly on the BuddyPress side.
Okay, so, in that version of BuddyPress, they were doing:
do_action( 'example_hook', &$this );
Instead of what BuddyPress now does:
do_action_ref_array( 'example_hook', array( &$this ) );
Even better would be:
do_action( 'example_hook', $this );
More information about the wp-hackers