[wp-trac] [WordPress Trac] #16661: Review use of apply_filters_ref_array() and do_action_ref_array()

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 9 04:47:56 UTC 2011


#16661: Review use of apply_filters_ref_array() and do_action_ref_array()
--------------------------------------+-----------------------------
 Reporter:  scribu                    |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch 3.2-early php5  |
--------------------------------------+-----------------------------

Comment (by scribu):

 > This means that the wordpress *_ref_array() functions are indeed still
 usefull because they pass all parameters in form of an array that will
 contain the same references even if you create a copy of the array.

 [attachment:test-ref-array.php] demonstrates that do_action_ref_array()
 passes the arguments by value, just like do_action().

 I'm guessing that's not what you meant, so please provide an example that
 illustrates the benefit of do_action_ref_array().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16661#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list