[wp-trac] [WordPress Trac] #40458: Cannot retrieve custom site details values

WordPress Trac noreply at wordpress.org
Mon Apr 17 18:25:10 UTC 2017

#40458: Cannot retrieve custom site details values
 Reporter:  ocean90             |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  4.8
Component:  Networks and Sites  |     Version:  4.6
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  multisite

Comment (by johnjamesjacoby):

 Is the end result to be able to add keys & values to the object that's in

 It's not currently possible (with this patch or without) to save a custom
 variable in the `site-details` cache object, because the `site_details`
 filter is ran after the `site-details` cache is getted/setted.

 The attached tests filter `site_details` directly, but those custom values
 will not be part of the cached details. The magic getters and setters will
 report back correctly, but any custom variables would need their own
 separate cache group.

Ticket URL: <https://core.trac.wordpress.org/ticket/40458#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list