Changeset 40385 for branches/4.7/src/wp-includes/ms-blogs.php
- Timestamp:
- 04/06/2017 05:26:04 PM (7 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
- Property svn:mergeinfo changed
/trunk merged: 40305,40333
- Property svn:mergeinfo changed
-
branches/4.7/src/wp-includes/ms-blogs.php
r39082 r40385 471 471 472 472 wp_cache_set( 'last_changed', microtime(), 'sites' ); 473 } 474 475 /** 476 * Cleans the site details cache for a site. 477 * 478 * @since 4.7.4 479 * 480 * @param int $site_id Optional. Site ID. Default is the current site ID. 481 */ 482 function clean_site_details_cache( $site_id = 0 ) { 483 $site_id = (int) $site_id; 484 if ( ! $site_id ) { 485 $site_id = get_current_blog_id(); 486 } 487 488 wp_cache_delete( $site_id, 'site-details' ); 489 wp_cache_delete( $site_id, 'blog-details' ); 473 490 } 474 491 … … 737 754 restore_current_blog(); 738 755 739 refresh_blog_details( $id );740 741 756 return $return; 742 757 }
Note: See TracChangeset
for help on using the changeset viewer.