Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/30/2012 02:07:05 PM (12 years ago)
Author:
djpaul
Message:

Bring back bp_core_is_root_component(), and deprecate it in favour of bp_is_root_component().

  • This function was renamed in r3728/#2600 for 1.5, but we broke backpat as we missed adding the deprecated version.

Fixes #4241

File:
1 edited

Legend:

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

    r6342 r6474  
    419419    _deprecated_function( __FUNCTION__, '1.5', 'bp_is_user_friend_requests()' );
    420420    return bp_is_user_friend_requests();
     421}
     422
     423/**
     424 * Checks to see if a component's URL should be in the root, not under a member page:
     425 * eg: http://domain.com/groups/the-group NOT http://domain.com/members/andy/groups/the-group
     426 * You should be using bp_is_root_component().
     427 *
     428 * @deprecated 1.5
     429 * @deprecated bp_is_root_component()
     430 * @return true if root component, else false.
     431 */
     432function bp_core_is_root_component( $component_name ) {
     433    _deprecated_function( __FUNCTION__, '1.5', 'bp_is_root_component()' );
     434    return bp_is_root_component( $component_name );
    421435}
    422436
Note: See TracChangeset for help on using the changeset viewer.