get_current_site_name

This deprecated function formerly set the site_name property of the $current_site object.

Description

(object) get_current_site_name( (object) $current_site ); 

This function simply returns the object, as before. The bootstrap takes care of setting site_name.

Returns (object)

Parameters (1)

0. $current_site (object)
The current site.

Usage

  1. if ( !function_exists( 'get_current_site_name' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-load.php'; 
  3.  
  4. // The current site. 
  5. $current_site = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = get_current_site_name($current_site); 
  9.  

Defined (1)

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

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