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() ) |
| 1644 | 1644 | * @since MU |
| 1645 | 1645 | * |
| 1646 | 1646 | * @global object $current_site |
| | 1647 | * |
| | 1648 | * @uses get_current_network |
| 1647 | 1649 | * |
| 1648 | 1650 | * @return object |
| 1649 | 1651 | */ |
| 1650 | 1652 | function 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 | */ |
| | 1670 | function get_current_network() { |
| 1651 | 1671 | global $current_site; |
| 1652 | 1672 | return $current_site; |
| 1653 | 1673 | } |