Warning: This function has been deprecated. Use get_current_site() instead.

Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

get_current_site_name ( object $current_site )

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

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

Return: (object)

Source file: wp-includes/ms-load.php

View source



(object) (Required)

Used by


function get_current_site_name( $current_site ) {
	_deprecated_function( __FUNCTION__, '3.9', 'get_current_site()' );
	return $current_site;


User Contributed Notes

You must log in before being able to contribute a note.