Changeset 38231 for branches/4.6/src/wp-includes/ms-blogs.php
- Timestamp:
- 08/09/2016 04:19:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.6/src/wp-includes/ms-blogs.php
r38125 r38231 479 479 * @since 4.6.0 480 480 * 481 * @global WP_Site $current_blog The current site.482 *483 481 * @param WP_Site|int|null $site Optional. Site to retrieve. Default is the current site. 484 482 * @return WP_Site|null The site object or null if not found. 485 483 */ 486 484 function get_site( &$site = null ) { 487 global $current_blog; 488 if ( empty( $site ) && isset( $current_blog ) ) { 489 $site = $current_blog; 485 if ( empty( $site ) ) { 486 $site = get_current_blog_id(); 490 487 } 491 488
Note: See TracChangeset
for help on using the changeset viewer.