[wp-trac] [WordPress Trac] #25160: Unnecessarily passing $this by reference in core

WordPress Trac noreply at wordpress.org
Wed Aug 28 18:30:05 UTC 2013


#25160: Unnecessarily passing $this by reference in core
-------------------------------------+------------------------------
 Reporter:  jdgrimes                 |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:
 Severity:  trivial                  |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by jdgrimes):

 Replying to [comment:5 SergeyBiryukov]:
 > Replying to [comment:2 jdgrimes]:
 > > It removes many unnecesary uses of `apply_filters_ref_array()` and
 `do_action_ref_array()` as a result of this as well.
 >
 > Previously: #16661

 I guess that means we probably won't be able to remove those calls. Darn.
 Although, the result only manifests itself as a PHP warning, so its not
 like we'd actually be breaking anything, right?

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


More information about the wp-trac mailing list