X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/61343b82c4f0da4c68e4c6373daafff4a81efdd1..41578db67d72562346e4dbb2a14889b23d522813:/wp-includes/ms-deprecated.php diff --git a/wp-includes/ms-deprecated.php b/wp-includes/ms-deprecated.php index 9c6cad45..5c7bfe2a 100644 --- a/wp-includes/ms-deprecated.php +++ b/wp-includes/ms-deprecated.php @@ -13,6 +13,23 @@ * 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 ); +} + /** * @since MU * @deprecated 3.0.0 @@ -69,7 +86,7 @@ function graceful_fail( $message ) { $message = apply_filters( 'graceful_fail', $message ); $message_template = apply_filters( 'graceful_fail_template', ' - + Error!