WordPress开发者和主题制作者的搜索引擎



get_dashboard_blog ›

Since3.0.0
已弃用3.1.0
get_dashboard_blog ( 没有参数 )
查看:
返回:
  • (WP_Site) Current site object.
定义在:
文档:
Change Log:
  • MU

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.



源码

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