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.

Built from https://develop.svn.wordpress.org/trunk@38943


git-svn-id: http://core.svn.wordpress.org/trunk@38886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2016-10-26 03:39:29 +00:00
parent b13da6ae73
commit 555466ab82
5 changed files with 7 additions and 8 deletions

View File

@ -443,7 +443,7 @@ function update_blog_details( $blog_id, $details = array() ) {
*
* @since 3.5.0
*
* @param WP_Site $blog The blog details as returned from get_blog_details()
* @param WP_Site $blog The site object to be cleared from cache.
*/
function clean_blog_cache( $blog ) {
$blog_id = $blog->blog_id;

View File

@ -19,9 +19,9 @@
*
* @since MU
* @deprecated 3.1.0 Use get_site()
* @see get_blog_details()
* @see get_site()
*
* @return int Current site ID.
* @return WP_Site Current site object.
*/
function get_dashboard_blog() {
_deprecated_function( __FUNCTION__, '3.1.0' );

View File

@ -1762,8 +1762,8 @@ function check_upload_mimes( $mimes ) {
*
* WordPress MS stores a blog's post count as an option so as
* to avoid extraneous COUNTs when a blog's details are fetched
* with get_blog_details(). This function is called when posts
* are published or unpublished to make sure the count stays current.
* with get_site(). This function is called when posts are published
* or unpublished to make sure the count stays current.
*
* @since MU
*

View File

@ -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;
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38942';
$wp_version = '4.7-alpha-38943';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.