[wp-trac] [WordPress Trac] #37615: Do not pass `$site` and `$network` by reference in `get_*()` functions
WordPress Trac
noreply at wordpress.org
Tue Aug 9 18:11:13 UTC 2016
#37615: Do not pass `$site` and `$network` by reference in `get_*()` functions
--------------------------------+-------------------------
Reporter: flixos90 | Owner: jeremyfelt
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.6
Component: Networks and Sites | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: multisite
--------------------------------+-------------------------
Comment (by jeremyfelt):
In [changeset:"38232"]:
{{{
#!CommitTicketReference repository="" revision="38232"
Multisite: Remove unnecessary reference parameters.
There is no advantage to passing parameters by reference to `get_site()`,
`get_network()`, and `update_site_cache()`.
Props flixos90, ocean90 for review.
See #37615.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37615#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list