Codex tools: Log in
Returns the global object $current_site containing various information relating to the site currently being viewed.
get_current_site() was inherited from MU, and uses different terminology. $current_blog refers to the current site (in 3.0+ terms), and $current_site refers to the whole network.
Therefore, see get_current_blog_id(), get_blog_details(), or $current_blog, for individual sites.
<?php get_current_site(); ?>
<?php $current_site = get_current_site(); echo 'You are viewing ' . $current_site->site_name; ?>
get_current_site() is located in