wpmu_current_site

This deprecated function managed much of the site and network loading in multisite.

Description

(object) wpmu_current_site(); 

The current bootstrap code is now responsible for parsing the site and network load as well as setting the global $current_site object.

Returns (object)


Usage

  1. if ( !function_exists( 'wpmu_current_site' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-load.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpmu_current_site(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/ms-load.php  
  1. function wpmu_current_site() { 
  2. global $current_site; 
  3. _deprecated_function( __FUNCTION__, '3.9.0' ); 
  4. return $current_site;