Skip to:
Content

BuddyPress.org

Changeset 2919 for trunk/bp-core.php


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.php

    r2864 r2919  
    298298     * built in WordPress profile information
    299299     */
    300     if ( !function_exists( 'xprofile_install' ) ) {
     300    if ( !bp_is_active( 'xprofile' ) ) {
    301301        /* Fallback values if xprofile is disabled */
    302302        $bp->core->profile->slug = 'profile';
     
    10771077
    10781078    if ( !$fullname = wp_cache_get( 'bp_user_fullname_' . $user_id, 'bp' ) ) {
    1079         if ( function_exists('xprofile_install') ) {
     1079        if ( bp_is_active( 'xprofile' ) ) {
    10801080            $fullname = xprofile_get_field_data( 1, $user_id );
    10811081
     
    12671267    @setcookie( 'bp-message-type', false, time() - 1000, COOKIEPATH );
    12681268}
    1269 add_action( 'wp', 'bp_core_setup_message' );
     1269add_action( 'bp_init', 'bp_core_setup_message' );
    12701270
    12711271/**
Note: See TracChangeset for help on using the changeset viewer.