mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
Multisite: Replace get_blog_details() in inline documentation.
Some documentation is now out of date and some can be replaced with a mention of `get_site()`. Fixes #37102. git-svn-id: https://develop.svn.wordpress.org/trunk@38943 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -211,7 +211,7 @@ function get_site_by_path( $domain, $path, $segments = null ) {
|
||||
|
||||
/*
|
||||
* @todo
|
||||
* get_blog_details(), caching, etc. Consider alternative optimization routes,
|
||||
* caching, etc. Consider alternative optimization routes,
|
||||
* perhaps as an opt-in for plugins, rather than using the pre_* filter.
|
||||
* For example: The segments filter can expand or ignore paths.
|
||||
* If persistent caching is enabled, we could query the DB for a path <> '/'
|
||||
@@ -243,7 +243,6 @@ function get_site_by_path( $domain, $path, $segments = null ) {
|
||||
$site = array_shift( $result );
|
||||
|
||||
if ( $site ) {
|
||||
// @todo get_blog_details()
|
||||
return $site;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user