Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36717, comment 21


Ignore:
Timestamp:
06/08/2016 04:24:23 PM (8 years ago)
Author:
flixos90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36717, comment 21

    initial v1  
    22> 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.
    33
    4 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()`).
     4This 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()`).~~