Skip to:
Content

BuddyPress.org

Ticket #2555: 2555.diff

File 2555.diff, 1.5 KB (added by sorich87, 14 years ago)

Removes "Directory"

  • bp-core/bp-core-templatetags.php

     
    704704}
    705705        function bp_get_avatar_admin_step() {
    706706                global $bp;
    707                
     707
    708708                if ( isset( $bp->avatar_admin->step ) )
    709709                        $step = $bp->avatar_admin->step;
    710710                else
     
    718718}
    719719        function bp_get_avatar_to_crop() {
    720720                global $bp;
    721                
     721
    722722                if ( isset( $bp->avatar_admin->image->url ) )
    723723                        $url = $bp->avatar_admin->image->url;
    724724                else
     
    913913
    914914        } else if ( $bp->is_directory ) {
    915915                if ( !$bp->current_component )
    916                         $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( BP_MEMBERS_SLUG ) );
     916                        $title = ucwords( BP_MEMBERS_SLUG );
    917917                else
    918                         $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( $bp->current_component ) );
     918                        $title = ucwords( $bp->current_component );
    919919
    920920        } else if ( bp_is_register_page() ) {
    921921                $title = __( 'Create an Account', 'buddypress' );
     
    10231023        global $bp;
    10241024
    10251025        $options = array();
    1026        
     1026
    10271027        if ( bp_is_active( 'xprofile' ) )
    10281028                $options['members'] = __( 'Members', 'buddypress' );
    10291029
     
    15301530                $path = bp_core_get_site_path();
    15311531        else
    15321532                $path = $current_blog->path;
    1533                
     1533
    15341534        if ( 'page' != get_option( 'show_on_front' ) || !$component || empty( $bp->pages->{$component} ) || $_SERVER['REQUEST_URI'] != $path )
    15351535                return false;
    15361536
     
    21462146        add_filter( 'body_class', 'bp_get_the_body_class', 10, 2 )
    21472147
    21482148
    2149 ?>
    2150  No newline at end of file
     2149?>