Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/21/2010 11:30:57 PM (16 years ago)
Author:
boonebgorges
Message:

Fixes a whole bunch of WP_DEBUG problems with groups and especially group creation.

File:
1 edited

Legend:

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

    r3454 r3472  
    705705    function bp_get_avatar_admin_step() {
    706706        global $bp;
    707 
    708         return apply_filters( 'bp_get_avatar_admin_step', $bp->avatar_admin->step );
     707       
     708        if ( isset( $bp->avatar_admin->step ) )
     709            $step = $bp->avatar_admin->step;
     710        else
     711            $step = '';
     712
     713        return apply_filters( 'bp_get_avatar_admin_step', $step );
    709714    }
    710715
     
    714719    function bp_get_avatar_to_crop() {
    715720        global $bp;
    716 
    717         return apply_filters( 'bp_get_avatar_to_crop', $bp->avatar_admin->image->url );
     721       
     722        if ( isset( $bp->avatar_admin->image->url ) )
     723            $url = $bp->avatar_admin->image->url;
     724        else
     725            $url = '';
     726
     727        return apply_filters( 'bp_get_avatar_to_crop', $url );
    718728    }
    719729
     
    10271037        $options['groups'] = __( 'Groups', 'buddypress' );
    10281038
    1029     if ( function_exists( 'bp_forums_is_installed_correctly' ) && bp_forums_is_installed_correctly() && !(int) $bp->site_options['bp-disable-forum-directory'] )
     1039    if ( function_exists( 'bp_forums_is_installed_correctly' ) && bp_forums_is_installed_correctly() && !isset( $bp->site_options['bp-disable-forum-directory'] ) )
    10301040        $options['forums'] = __( 'Forums', 'buddypress' );
    10311041
Note: See TracChangeset for help on using the changeset viewer.