Make WordPress Core


Ignore:
Timestamp:
08/06/2013 04:07:46 PM (12 years ago)
Author:
ryan
Message:

Deprecate get_dashboard_blog().
Remove contextual help for Dashboard Site from the network settings screen.

Props sillybean, ocean90
fixes #24838

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-deprecated.php

    r23438 r24993  
    1313 * Deprecated functions come here to die.
    1414 */
     15
     16/**
     17 * Get the "dashboard blog", the blog where users without a blog edit their profile data.
     18 * Dashboard blog functionality was removed in WordPress 3.1, replaced by the user admin.
     19 *
     20 * @since MU
     21 * @deprecated 3.1.0
     22 * @see get_blog_details()
     23 * @return int
     24 */
     25function get_dashboard_blog() {
     26    _deprecated_function( __FUNCTION__, '3.1' );
     27    if ( $blog = get_site_option( 'dashboard_blog' ) )
     28        return get_blog_details( $blog );
     29
     30    return get_blog_details( $GLOBALS['current_site']->blog_id );
     31}
    1532
    1633/**
Note: See TracChangeset for help on using the changeset viewer.