Make WordPress Core

Ticket #33899: 33899.patch

File 33899.patch, 830 bytes (added by spacedmonkey, 9 years ago)
  • wp-includes/ms-functions.php

    diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php
    index a6c2d02..e376121 100644
    a b function wpmu_welcome_user_notification( $user_id, $password, $meta = array() ) 
    16441644 * @since MU
    16451645 *
    16461646 * @global object $current_site
     1647 * 
     1648 * @uses get_current_network
    16471649 *
    16481650 * @return object
    16491651 */
    16501652function get_current_site() {
     1653        $current_site = get_current_network();
     1654        return $current_site;
     1655}
     1656
     1657/**
     1658 * Get the current network info.
     1659 *
     1660 * Returns an object containing the 'id', 'domain', 'path', and 'site_name'
     1661 * properties of the site being viewed.
     1662 *
     1663 *
     1664 * @since 4.4.0
     1665 *
     1666 * @global object $current_site
     1667 *
     1668 * @return object
     1669 */
     1670function get_current_network() {
    16511671        global $current_site;
    16521672        return $current_site;
    16531673}