[wp-trac] [WordPress Trac] #25160: Unnecessarily passing $this by reference in core
WordPress Trac
noreply at wordpress.org
Thu Aug 29 00:44:25 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 nacin):
That test is specifically trying to trigger that notice. So the proper
thing to do would be to deliberately suppress the notice, but also catch
it and confirm it would have occurred. We have similar stuff in
tests/functions/deprecated.php for deprecated methods, but we don't really
have a solid foundation yet for these.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25160#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list