WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/20/2016 09:38:08 PM (3 years ago)
Author:
jeremyfelt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r38607 r38636  
    10691069    return ( $thing instanceof WP_Error );
    10701070}
    1071 
    1072 /**
    1073  * Get the current network.
    1074  *
    1075  * Returns an object containing the 'id', 'domain', 'path', and 'site_name'
    1076  * properties of the network being viewed.
    1077  *
    1078  * @see wpmu_current_site()
    1079  *
    1080  * @since MU
    1081  *
    1082  * @global WP_Network $current_site
    1083  *
    1084  * @return WP_Network
    1085  */
    1086 function get_current_site() {
    1087     global $current_site;
    1088     return $current_site;
    1089 }
Note: See TracChangeset for help on using the changeset viewer.