[wp-trac] [WordPress Trac] #32450: WP_Site class
WordPress Trac
noreply at wordpress.org
Wed May 20 21:00:59 UTC 2015
#32450: WP_Site class
--------------------------------+-------------------------
Reporter: jeremyfelt | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.3
Component: Networks and Sites | Version:
Severity: normal | Keywords: needs-patch
Focuses: multisite |
--------------------------------+-------------------------
Historically, the global `$current_blog` has been a `stdClass` and has not
had any methods attached to it. We should better define this as an
instance of a `WP_Site` object.
This ticket should:
* Introduce the `WP_Site` class and have base properties and methods for
interacting with a site object.
* Apply the new class where it can be used within core.
* Provide tests for any methods introduced.
See #31985 for the `WP_Network` class equivalent of this ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32450>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list