[wp-trac] [WordPress Trac] #17111: Remove unnecessary copy-by-reference in do_action()

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 12 10:24:16 UTC 2011


#17111: Remove unnecessary copy-by-reference in do_action()
-------------------------+------------------
 Reporter:  scribu       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.2
Component:  Performance  |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by Denis-de-Bernardy):

 > unlikely that plugins call do_action( 'whatever', array( &$this ) );

 If memory serves, that unlikely call used to be an documented best
 practice a few years back.

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


More information about the wp-trac mailing list