Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/12/2011 09:25:51 PM (15 years ago)
Author:
djpaul
Message:

Swap function_exists checks to bp_is_active. Fixes #2718

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/deprecated/1.3.php

    r4053 r4137  
    3030    _deprecated_function( __FUNCTION__, '1.3', 'is_multisite()' );
    3131    return is_multisite();
     32}
     33
     34/**
     35 * bp_core_is_main_site
     36 *
     37 * Checks if current blog is root blog of site. Deprecated in 1.3.
     38 *
     39 * @deprecated 1.3
     40 * @deprecated Use is_main_site()
     41 * @package BuddyPress
     42 * @param int $blog_id optional blog id to test (default current blog)
     43 * @return bool True if not multisite or $blog_id is main site
     44 * @since 1.2.6
     45 */
     46function bp_core_is_main_site( $blog_id = '' ) {
     47    _deprecated_function( __FUNCTION__, '1.3', 'is_main_site()' );
     48    return is_main_site( $blog_id );
    3249}
    3350
Note: See TracChangeset for help on using the changeset viewer.