WordPress.org

Make WordPress Core

Ticket #37615: 37615.2.diff

File 37615.2.diff, 1.3 KB (added by jeremyfelt, 4 years ago)
  • src/wp-includes/ms-blogs.php

     
    481481 * @param WP_Site|int|null $site Optional. Site to retrieve. Default is the current site.
    482482 * @return WP_Site|null The site object or null if not found.
    483483 */
    484 function get_site( &$site = null ) {
     484function get_site( $site = null ) {
    485485        if ( empty( $site ) ) {
    486486                $site = get_current_blog_id();
    487487        }
     
    537537 *
    538538 * @since 4.6.0
    539539 *
    540  * @param array $sites Array of site objects, passed by reference.
     540 * @param array $sites Array of site objects.
    541541 */
    542 function update_site_cache( &$sites ) {
     542function update_site_cache( $sites ) {
    543543        if ( ! $sites ) {
    544544                return;
    545545        }
     
    10851085 *
    10861086 * @global WP_Network $current_site
    10871087 *
    1088  * @param WP_Network|int|null $network Network to retrieve, passed by reference.
     1088 * @param WP_Network|int|null $network Network to retrieve.
    10891089 * @return WP_Network|null The network object or null if not found.
    10901090 */
    1091 function get_network( &$network = null ) {
     1091function get_network( $network = null ) {
    10921092        global $current_site;
    10931093        if ( empty( $network ) && isset( $current_site ) ) {
    10941094                $network = $current_site;