Skip to:
Content

BuddyPress.org


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

Replacing function_exists() checks with bp_is_active() checks.

File:
1 edited

Legend:

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

    r2863 r2919  
    3333        foreach ( (array)$_POST['bp-admin'] as $key => $value ) {
    3434
    35             if ( function_exists( 'xprofile_install' ) ) {
     35            if ( bp_is_active( 'xprofile' ) ) {
    3636                if ( 'bp-xprofile-base-group-name' == $key ) {
    3737                    $wpdb->query( $wpdb->prepare( "UPDATE {$bp->profile->table_name_groups} SET name = %s WHERE id = 1", $value ) );
     
    6262            <table class="form-table">
    6363            <tbody>
    64                 <?php if ( function_exists( 'xprofile_install' ) ) :?>
     64                <?php if ( is_active( 'xprofile' ) ) :?>
    6565                <tr>
    6666                    <th scope="row"><?php _e( 'Base profile group name', 'buddypress' ) ?>:</th>
     
    113113                </tr>
    114114                <?php endif; ?>
    115                 <?php if ( function_exists( 'bp_activity_install') ) : ?>
     115                <?php if ( bp_is_active( 'activity' ) ) : ?>
    116116                <tr>
    117117                    <th scope="row"><?php _e( 'Disable activity stream commenting on blog and forum posts?', 'buddypress' ) ?>:</th>
Note: See TracChangeset for help on using the changeset viewer.