[wp-trac] [WordPress Trac] #38246: Ensure that the first populated network is a `WP_Network`

WordPress Trac noreply at wordpress.org
Thu Oct 6 16:42:11 UTC 2016

#38246: Ensure that the first populated network is a `WP_Network`
 Reporter:  flixos90            |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  4.7
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:  needs-patch
  Focuses:  multisite           |
 When the function `populate_network()` is called on upgrade from single to
 multisite, the `$current_site` global is written as a plain object. Since
 we have `WP_Network` now, we should ensure it is an instance of that

 As a site-effect, the number of operations where the global is accessed is
 reduced so that we can easier replace this by a better mechanism at some
 point. :)

Ticket URL: <https://core.trac.wordpress.org/ticket/38246>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list