get_dashboard_blog

The timeline below displays how wordpress function get_dashboard_blog has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.9

/**
 * Deprecated functions from WordPress MU and the multisite feature. You shouldn't
 * use these functions and look for the alternatives instead. The functions will be
 * removed in a later version.
 *
 * @package WordPress
 * @subpackage Deprecated
 * @since 3.0.0
 */
/*
 * Deprecated functions come here to die.
 */
/**
 * Get the "dashboard blog", the blog where users without a blog edit their profile data.
 * Dashboard blog functionality was removed in WordPress 3.1, replaced by the user admin.
 *
 * @since MU (3.0.0)
 * @deprecated 3.1.0 Use get_site()
 * @see get_site()
 *
 * @return WP_Site Current site object.
 */
function get_dashboard_blog()
{
    _deprecated_function(__FUNCTION__, '3.1.0', 'get_site()');
    if ($blog = get_site_option('dashboard_blog')) {
        return get_site($blog);
    }
    return get_site(get_network()->site_id);
}

WordPress Version: 4.7

/**
 * Deprecated functions from WordPress MU and the multisite feature. You shouldn't
 * use these functions and look for the alternatives instead. The functions will be
 * removed in a later version.
 *
 * @package WordPress
 * @subpackage Deprecated
 * @since 3.0.0
 */
/*
 * Deprecated functions come here to die.
 */
/**
 * Get the "dashboard blog", the blog where users without a blog edit their profile data.
 * Dashboard blog functionality was removed in WordPress 3.1, replaced by the user admin.
 *
 * @since MU
 * @deprecated 3.1.0 Use get_site()
 * @see get_site()
 *
 * @return WP_Site Current site object.
 */
function get_dashboard_blog()
{
    _deprecated_function(__FUNCTION__, '3.1.0');
    if ($blog = get_site_option('dashboard_blog')) {
        return get_site($blog);
    }
    return get_site(get_network()->site_id);
}

WordPress Version: 4.6

/**
 * Deprecated functions from WordPress MU and the multisite feature. You shouldn't
 * use these functions and look for the alternatives instead. The functions will be
 * removed in a later version.
 *
 * @package WordPress
 * @subpackage Deprecated
 * @since 3.0.0
 */
/*
 * Deprecated functions come here to die.
 */
/**
 * Get the "dashboard blog", the blog where users without a blog edit their profile data.
 * Dashboard blog functionality was removed in WordPress 3.1, replaced by the user admin.
 *
 * @since MU
 * @deprecated 3.1.0 Use get_blog_details()
 * @see get_blog_details()
 *
 * @return int Current site ID.
 */
function get_dashboard_blog()
{
    _deprecated_function(__FUNCTION__, '3.1.0');
    if ($blog = get_site_option('dashboard_blog')) {
        return get_blog_details($blog);
    }
    return get_blog_details($GLOBALS['current_site']->blog_id);
}

WordPress Version: 4.4

/**
 * Deprecated functions from WordPress MU and the multisite feature. You shouldn't
 * use these functions and look for the alternatives instead. The functions will be
 * removed in a later version.
 *
 * @package WordPress
 * @subpackage Deprecated
 * @since 3.0.0
 */
/*
 * Deprecated functions come here to die.
 */
/**
 * Get the "dashboard blog", the blog where users without a blog edit their profile data.
 * Dashboard blog functionality was removed in WordPress 3.1, replaced by the user admin.
 *
 * @since MU
 * @deprecated 3.1.0 Use get_blog_details()
 * @see get_blog_details()
 *
 * @return int Current site ID.
 */
function get_dashboard_blog()
{
    _deprecated_function(__FUNCTION__, '3.1');
    if ($blog = get_site_option('dashboard_blog')) {
        return get_blog_details($blog);
    }
    return get_blog_details($GLOBALS['current_site']->blog_id);
}

WordPress Version: 3.7

/**
 * Deprecated functions from WordPress MU and the multisite feature. You shouldn't
 * use these functions and look for the alternatives instead. The functions will be
 * removed in a later version.
 *
 * @package WordPress
 * @subpackage Deprecated
 * @since 3.0.0
 */
/*
 * Deprecated functions come here to die.
 */
/**
 * Get the "dashboard blog", the blog where users without a blog edit their profile data.
 * Dashboard blog functionality was removed in WordPress 3.1, replaced by the user admin.
 *
 * @since MU
 * @deprecated 3.1.0
 * @see get_blog_details()
 * @return int
 */
function get_dashboard_blog()
{
    _deprecated_function(__FUNCTION__, '3.1');
    if ($blog = get_site_option('dashboard_blog')) {
        return get_blog_details($blog);
    }
    return get_blog_details($GLOBALS['current_site']->blog_id);
}