[wp-trac] [WordPress Trac] #37948: Use `WP_Site` class globally

WordPress Trac noreply at wordpress.org
Tue Sep 6 09:32:09 UTC 2016


#37948: Use `WP_Site` class globally
--------------------------------+-----------------------------
 Reporter:  flixos90            |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:  needs-patch
  Focuses:  multisite           |
--------------------------------+-----------------------------
 The `WP_Site` class introduced in WordPress 4.5 is currently only being
 loaded in Multisite environments. However, there are several functions
 that return a "site-like" object on non-multisite installs as well. Given
 that every setup contains a site (or let's rather say, a regular setup
 ''is'' a site), I think it would make sense to make the `WP_Site` class
 compatible with regular setups and then load it globally.

 For reference see #37061

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


More information about the wp-trac mailing list