Ticket #37615: 37615.diff
| File 37615.diff, 1.3 KB (added by , 9 years ago) |
|---|
-
src/wp-includes/ms-blogs.php
481 481 * @param WP_Site|int|null $site Optional. Site to retrieve. Default is the current site. 482 482 * @return WP_Site|null The site object or null if not found. 483 483 */ 484 function get_site( &$site = null ) {484 function get_site( $site = null ) { 485 485 if ( empty( $site ) ) { 486 486 $site = get_current_blog_id(); 487 487 } … … 537 537 * 538 538 * @since 4.6.0 539 539 * 540 * @param array $sites Array of site objects , passed by reference.540 * @param array $sites Array of site objects. 541 541 */ 542 function update_site_cache( &$sites ) {542 function update_site_cache( $sites ) { 543 543 if ( ! $sites ) { 544 544 return; 545 545 } … … 1085 1085 * 1086 1086 * @global WP_Network $current_site 1087 1087 * 1088 * @param WP_Network|int|null $network Network to retrieve, passed by reference.1088 * @param WP_Network|int|null $network Optional. Network to retrieve. Default is the current network. 1089 1089 * @return WP_Network|null The network object or null if not found. 1090 1090 */ 1091 function get_network( &$network = null ) {1091 function get_network( $network = null ) { 1092 1092 global $current_site; 1093 1093 if ( empty( $network ) && isset( $current_site ) ) { 1094 1094 $network = $current_site;