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

WordPress Trac noreply at wordpress.org
Thu Sep 5 16:33:51 UTC 2013


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

Comment (by wonderboymusic):

 In [changeset:"25254"]:
 {{{
 #!CommitTicketReference repository="" revision="25254"
 Remove lingering instances of call time pass-by-reference, limited to
 instances of `callable` - use `$this` instead of `&$this`.

 Props jdgrimes.
 See #25160.
 }}}

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


More information about the wp-trac mailing list