[wp-trac] [WordPress Trac] #36717: Allow to access network and site properties using the current naming conventions

WordPress Trac noreply at wordpress.org
Wed Jun 8 15:58:26 UTC 2016


#36717: Allow to access network and site properties using the current naming
conventions
-------------------------------------+------------------------
 Reporter:  flixos90                 |       Owner:  flixos90
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:  4.6
Component:  Networks and Sites       |     Version:  4.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  multisite
-------------------------------------+------------------------

Comment (by flixos90):

 Replying to [comment:20 jeremyfelt]:
 > Full `WP_Site` objects with existing public properties were stored in
 cache via `get_blog_details()`, which was being used along with the
 `pre_get_site_path` filter. There will be other sites doing something
 similar.

 This is closely related to #36935. The patch on that ticket should fix
 that problem since it explicitly stores a raw site object in cache. It
 only needs a small update to work properly: ensure that `$blog_id` and
 `$site_id` are cached as well (since these are now private and wouldn't be
 caught by `get_object_vars()`).

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


More information about the wp-trac mailing list