`get_site_by()` is now the preferred way to retrieve a site object by lookup for identifying data. By using a coherent structure and `get_sites()` internally, it has several advantages over the direct database queries and complex code in `get_blog_details()`. Therefore `get_blog_details()` is now a wrapper for `get_site_by()`, providing backward compatibility fixes where necessary. Unit tests have been adjusted to account for the `blog-details` and `blog-lookup` cache groups, which are no longer needed. Props spacedmonkey, jeremyfelt, flixos90. Fixes #40228. Built from https://develop.svn.wordpress.org/trunk@41719 git-svn-id: http://core.svn.wordpress.org/trunk@41553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
7.2 KiB
7.2 KiB