wpmu_current_site() WP 3.0.0
Устарела с версии 3.9.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.╳
This deprecated function managed much of the site and network loading in multisite.
The current bootstrap code is now responsible for parsing the site and network load as well as setting the global $current_site object.
Хуков нет.
Возвращает
WP_Network
. Ничего.
Использование
wpmu_current_site();
Заметки
- Global. WP_Network. $current_site
Список изменений
С версии 3.0.0 | Введена. |
Устарела с | 3.9.0 |
Код wpmu_current_site() wpmu current site WP 5.7.1
function wpmu_current_site() {
global $current_site;
_deprecated_function( __FUNCTION__, '3.9.0' );
return $current_site;
}