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

WordPress Trac noreply at wordpress.org
Sat Sep 17 08:57:39 UTC 2016


#37948: Use `WP_Site` class globally
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Networks and Sites                   |  Review
 Severity:  normal                               |     Version:
 Keywords:  has-patch needs-unit-tests 2nd-      |  Resolution:
  opinion                                        |     Focuses:  multisite
-------------------------------------------------+-------------------------

Comment (by flixos90):

 @MikeSchinkel I don't think we should get into this just yet, but I agree
 that it might be useful to provide some of that functionality in the
 future. This might also make sense as it would somehow align with
 approaches like https://github.com/WP-API/wp-api-site-endpoints/issues/14.

 So I think it's a valid use-case, but I don't think we should add anything
 of it at this point even if we make the class globally available. This
 would belong to a new ticket anyway. :)

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


More information about the wp-trac mailing list