Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/09/2010 04:19:15 PM (15 years ago)
Author:
mrmaz
Message:

bp_get_loggedin_user_nav() appears to be deprecated, updated phpdoc, use bp_is_active() just in case

File:
1 edited

Legend:

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

    r2906 r2907  
    419419 *
    420420 * @package BuddyPress Core
     421 * @todo Move to a back-compat file?
     422 * @deprecated Does not seem to be called anywhere in the core
    421423 * @global $bp The global BuddyPress settings variable created in bp_core_setup_globals()
    422424 */
     
    439441            $selected = '';
    440442
    441             if ( function_exists('friends_install') ) {
     443            if ( bp_is_active( 'friends' ) ) {
    442444                if ( $nav_item['css_id'] == $bp->friends->id ) {
    443445                    if ( friends_check_friendship( $bp->loggedin_user->id, $bp->displayed_user->id ) )
Note: See TracChangeset for help on using the changeset viewer.