[wp-trac] [WordPress Trac] #32450: WP_Site class

WordPress Trac noreply at wordpress.org
Fri May 22 02:31:08 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              |  Resolution:
 Keywords:  needs-patch         |     Focuses:  multisite
--------------------------------+------------------------

Comment (by johnjamesjacoby):

 [https://core.trac.wordpress.org/attachment/ticket/32450/32450.01.patch
 32450.01.patch] does the following:

 * Introduces a (largely incomplete) base `WP_Site` class using `WP_Post`
 for inspiration
 * Moves the guts of `get_site_by_path()` into a static `get()` method
 * Includes a `get_instance()` method similar to `WP_Post::get_instance()`,
 but I don't see a practical use case for it yet

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


More information about the wp-trac mailing list