[buddypress-trac] [BuddyPress] #2759: Call-time pass-by-reference has been deprecated

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Nov 26 05:47:53 UTC 2010


#2759: Call-time pass-by-reference has been deprecated
---------------------+------------------------------------------------------
  Reporter:  mjama   |       Owner:  DJPaul
      Type:  defect  |      Status:  closed
  Priority:  normal  |   Milestone:  1.3   
 Component:  Core    |     Version:  1.2.6 
Resolution:  fixed   |    Keywords:        
---------------------+------------------------------------------------------

Comment(by nacin):

 I imagine this was done to allow a callback to then modify more than just
 the variable returned, but also these additional variables passed by
 reference. (Any changes done to them would then be reflected in the
 calling code.)

 For this, you'll want to consider do_action_ref_array,
 apply_filters_ref_array, or potentially a simple compact() then extract()
 to ensure that plugins can still change what they used to be able to
 change.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2759#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list