Ticket #37102: 37102.diff
| File 37102.diff, 2.3 KB (added by , 9 years ago) |
|---|
-
src/wp-includes/ms-blogs.php
443 443 * 444 444 * @since 3.5.0 445 445 * 446 * @param WP_Site $blog The blog details as returned from get_blog_details()446 * @param WP_Site $blog The site object to be cleared from cache. 447 447 */ 448 448 function clean_blog_cache( $blog ) { 449 449 $blog_id = $blog->blog_id; -
src/wp-includes/ms-deprecated.php
19 19 * 20 20 * @since MU 21 21 * @deprecated 3.1.0 Use get_site() 22 * @see get_ blog_details()22 * @see get_site() 23 23 * 24 * @return int Current site ID.24 * @return WP_Site Current site object. 25 25 */ 26 26 function get_dashboard_blog() { 27 27 _deprecated_function( __FUNCTION__, '3.1.0' ); -
src/wp-includes/ms-functions.php
1762 1762 * 1763 1763 * WordPress MS stores a blog's post count as an option so as 1764 1764 * to avoid extraneous COUNTs when a blog's details are fetched 1765 * with get_ blog_details(). This function is called when posts1766 * are publishedor unpublished to make sure the count stays current.1765 * with get_site(). This function is called when posts are published 1766 * or unpublished to make sure the count stays current. 1767 1767 * 1768 1768 * @since MU 1769 1769 * -
src/wp-includes/ms-load.php
211 211 212 212 /* 213 213 * @todo 214 * get_blog_details(),caching, etc. Consider alternative optimization routes,214 * caching, etc. Consider alternative optimization routes, 215 215 * perhaps as an opt-in for plugins, rather than using the pre_* filter. 216 216 * For example: The segments filter can expand or ignore paths. 217 217 * If persistent caching is enabled, we could query the DB for a path <> '/' … … 243 243 $site = array_shift( $result ); 244 244 245 245 if ( $site ) { 246 // @todo get_blog_details()247 246 return $site; 248 247 } 249 248