Changeset 3472 for trunk/bp-core/bp-core-templatetags.php
- Timestamp:
- 11/21/2010 11:30:57 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-templatetags.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r3454 r3472 705 705 function bp_get_avatar_admin_step() { 706 706 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 ); 709 714 } 710 715 … … 714 719 function bp_get_avatar_to_crop() { 715 720 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 ); 718 728 } 719 729 … … 1027 1037 $options['groups'] = __( 'Groups', 'buddypress' ); 1028 1038 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'] ) ) 1030 1040 $options['forums'] = __( 'Forums', 'buddypress' ); 1031 1041
Note: See TracChangeset
for help on using the changeset viewer.