Warning: This function has been deprecated. Use get_site() instead.

get_dashboard_blog() WordPress Function

The get_dashboard_blog() function displays the most recent posts from the WordPress blog in the WordPress administration dashboard. This function is useful for keeping up with the latest news and events related to WordPress.

get_dashboard_blog() #

Get the “dashboard blog”, the blog where users without a blog edit their profile data.


Description

Dashboard blog functionality was removed in WordPress 3.1, replaced by the user admin.

Top ↑

See also


Top ↑

Return

(WP_Site) Current site object.


Top ↑

Source

File: wp-includes/ms-deprecated.php

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 );
}


Top ↑

Changelog

Changelog
VersionDescription
3.1.0Use get_site()
MU (3.0.0)Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.