mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 17:44:25 +00:00
Multisite: Revert [38388].
Restore `get_current_site()` to a multisite only function. Providing this in single site may be a possibility in the future, but should have a dedicated ticket and discussion. See #37699. git-svn-id: https://develop.svn.wordpress.org/trunk@38636 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1068,22 +1068,3 @@ function wp_doing_ajax() {
|
||||
function is_wp_error( $thing ) {
|
||||
return ( $thing instanceof WP_Error );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current network.
|
||||
*
|
||||
* Returns an object containing the 'id', 'domain', 'path', and 'site_name'
|
||||
* properties of the network being viewed.
|
||||
*
|
||||
* @see wpmu_current_site()
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global WP_Network $current_site
|
||||
*
|
||||
* @return WP_Network
|
||||
*/
|
||||
function get_current_site() {
|
||||
global $current_site;
|
||||
return $current_site;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user