Ticket #2555: 2555.diff
File 2555.diff, 1.5 KB (added by , 14 years ago) |
---|
-
bp-core/bp-core-templatetags.php
704 704 } 705 705 function bp_get_avatar_admin_step() { 706 706 global $bp; 707 707 708 708 if ( isset( $bp->avatar_admin->step ) ) 709 709 $step = $bp->avatar_admin->step; 710 710 else … … 718 718 } 719 719 function bp_get_avatar_to_crop() { 720 720 global $bp; 721 721 722 722 if ( isset( $bp->avatar_admin->image->url ) ) 723 723 $url = $bp->avatar_admin->image->url; 724 724 else … … 913 913 914 914 } else if ( $bp->is_directory ) { 915 915 if ( !$bp->current_component ) 916 $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( BP_MEMBERS_SLUG ));916 $title = ucwords( BP_MEMBERS_SLUG ); 917 917 else 918 $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( $bp->current_component ));918 $title = ucwords( $bp->current_component ); 919 919 920 920 } else if ( bp_is_register_page() ) { 921 921 $title = __( 'Create an Account', 'buddypress' ); … … 1023 1023 global $bp; 1024 1024 1025 1025 $options = array(); 1026 1026 1027 1027 if ( bp_is_active( 'xprofile' ) ) 1028 1028 $options['members'] = __( 'Members', 'buddypress' ); 1029 1029 … … 1530 1530 $path = bp_core_get_site_path(); 1531 1531 else 1532 1532 $path = $current_blog->path; 1533 1533 1534 1534 if ( 'page' != get_option( 'show_on_front' ) || !$component || empty( $bp->pages->{$component} ) || $_SERVER['REQUEST_URI'] != $path ) 1535 1535 return false; 1536 1536 … … 2146 2146 add_filter( 'body_class', 'bp_get_the_body_class', 10, 2 ) 2147 2147 2148 2148 2149 ?> 2150 No newline at end of file 2149 ?>