WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/20/2016 09:38:08 PM (4 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/ms-blogs.php

    r38596 r38636  
    10891089 * @since 4.6.0
    10901090 *
     1091 * @global WP_Network $current_site
     1092 *
    10911093 * @param WP_Network|int|null $network Optional. Network to retrieve. Default is the current network.
    10921094 * @return WP_Network|null The network object or null if not found.
    10931095 */
    10941096function get_network( $network = null ) {
    1095     $current_site = get_current_site();
     1097    global $current_site;
    10961098    if ( empty( $network ) && isset( $current_site ) ) {
    10971099        $network = $current_site;
Note: See TracChangeset for help on using the changeset viewer.