get_current_site_name()已过时的方法

目录

描述

Gets the current site name based on the value of the $current_site global variable.

get_current_site_name() 描述

用法

<?php get_current_site_name$current_site ); ?>

get_current_site_name() 用法

参数

$current_site

get_current_site_name() 参数

返回值

(Object) 

Returns $current_site object with site_name.

get_current_site_name() 返回值

历史

get_current_site_name() 历史

源文件

get_current_site_name() 函数的代码位于 wp-includes/ms-load.php.

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */
/**
 * 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.
 *
 * @access private
 * @since 3.0.0
 * @deprecated 3.9.0 Use get_current_site() instead.
 *
 * @param object $current_site
 * @return object
 */
function get_current_site_name( $current_site ) {
	_deprecated_function( __FUNCTION__, '3.9', 'get_current_site()' );
	return $current_site;
}

get_current_site_name() 源文件