get_current_site_name

Advertisement

Deprecated Deprecated

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

Private Access Private Access

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.

Summery Summery

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

Syntax Syntax

get_current_site_name( object $current_site )

Description Description

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

Parameters Parameters

$current_site

(Required)

Return Return

(object)

Source Source

File: wp-includes/ms-load.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.9.0 Use get_current_site() instead.
3.0.0 Introduced.

Advertisement

Leave a Reply