Skip to:
Content

BuddyPress.org

Changeset 6612


Ignore:
Timestamp:
12/10/2012 03:28:36 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Deprecate bp_is_page(). Fixes #4479.

Location:
trunk/bp-core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r6603 r6612  
    10571057}
    10581058
    1059 function bp_is_page( $page ) {
    1060     if ( !bp_is_user() && bp_is_current_component( $page )  )
    1061         return true;
    1062 
    1063     if ( 'home' == $page )
    1064         return is_front_page();
    1065 
    1066     return false;
    1067 }
    1068 
    10691059/**
    10701060 * Is this a BuddyPress component?
  • trunk/bp-core/deprecated/1.7.php

    r6583 r6612  
    9595}
    9696
     97/**
     98 * No longer used by BuddyPress core
     99 *
     100 * @deprecated BuddyPress (1.7)
     101 * @param string $page
     102 * @return boolean True if is BuddyPress page
     103 */
     104function bp_is_page( $page = '' ) {
     105    _deprecated_function( __FUNCTION__, '1.7' );
     106
     107    if ( !bp_is_user() && bp_is_current_component( $page )  )
     108        return true;
     109
     110    if ( 'home' == $page )
     111        return is_front_page();
     112
     113    return false;
     114}
     115
    97116/** Admin *********************************************************************/
    98 
    99117
    100118/**
Note: See TracChangeset for help on using the changeset viewer.