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

WordPress Trac noreply at wordpress.org
Sat Apr 15 10:38:23 UTC 2017


#40458: Cannot retrieve custom site details values
--------------------------------+-----------------------------------
 Reporter:  ocean90             |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  4.6
 Severity:  normal              |   Keywords:  2nd-opinion has-patch
  Focuses:  multisite           |
--------------------------------+-----------------------------------
 With the `blog_details` filter and `get_blog_details()` function it's
 possible to set and retrieve custom site details. That's not possible with
 the `site_details` filter because `WP_Site::get_details()` is private and
 `WP_Site::__get()` uses a whitelist for `blogname`, `siteurl`,
 `post_count` and `home`.

 I think we should adjust `WP_Site::__get()` to always fall back to
 details, see attached patch. This would be one more step to make
 `get_site()` a direct replacement for `get_blog_details()`.

 Related: [38936], #36935

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


More information about the wp-trac mailing list