Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/13/2010 04:01:07 PM (15 years ago)
Author:
apeatling
Message:

Replacing function_exists() checks with bp_is_active() checks.

File:
1 edited

Legend:

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

    r2863 r2919  
    224224            <li><a href="<?php echo $bp->root_domain . '/' . $bp->members->slug . '/?random-member' ?>"><?php _e( 'Random Member', 'buddypress' ) ?></a></li>
    225225
    226             <?php if ( function_exists('groups_install') ) : ?>
     226            <?php if ( bp_is_active( 'groups' ) ) : ?>
    227227            <li class="alt"><a href="<?php echo $bp->root_domain . '/' . $bp->groups->slug . '/?random-group' ?>"><?php _e( 'Random Group', 'buddypress' ) ?></a></li>
    228228            <?php endif; ?>
    229229
    230             <?php if ( function_exists('bp_blogs_install') && bp_core_is_multisite() ) : ?>
     230            <?php if ( bp_is_active( 'blogs' ) && bp_core_is_multisite() ) : ?>
    231231            <li><a href="<?php echo $bp->root_domain . '/' . $bp->blogs->slug . '/?random-blog' ?>"><?php _e( 'Random Blog', 'buddypress' ) ?></a></li>
    232232
Note: See TracChangeset for help on using the changeset viewer.