[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 16:34:03 UTC 2016


#37615: Do not pass `$site` and `$network` by reference in `get_*()` functions
--------------------------------+------------------------
 Reporter:  flixos90            |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  4.6
Component:  Networks and Sites  |     Version:  trunk
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+------------------------
Changes (by flixos90):

 * keywords:  needs-patch => has-patch


Comment:

 [attachment:37615.diff] adjust that. The patch also adjust a similar issue
 in `update_site_cache()`, and fixes the docs for the `$network` parameter
 of `get_network()` (previously didn't mention the default value).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37615#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list