[wp-trac] [WordPress Trac] #32450: WP_Site class
WordPress Trac
noreply at wordpress.org
Mon Jan 25 21:51:03 UTC 2016
#32450: WP_Site class
--------------------------------+-------------------------
Reporter: jeremyfelt | Owner: jeremyfelt
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: 4.5
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: multisite
--------------------------------+-------------------------
Comment (by jeremyfelt):
In [changeset:"36393"]:
{{{
#!CommitTicketReference repository="" revision="36393"
Multisite: Introduce the WP_Site class.
* A `WP_Site` object initially matches a row from `wp_blogs`.
* A site can be retrieved by its ID through `WP_Site::get_instance()`.
* Adds `sites` to the global cache group and captures instance lookups.
* The multisite bootstrap now ensures `$current_blog` is an instance of
`WP_Site`.
Props johnjamesjacoby, jeremyfelt.
See #32450.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32450#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list