Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/22/2014 06:36:36 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Update bp_members_admin_user_stats metabox title to either include a display name, or fall back to ambiguous 'Member' verbiage if no name can be retrieved. See #5623.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-admin.php

    r8443 r8444  
    693693
    694694            // If xProfile is inactive, difficult to know what's profile we're on
    695             $display_name = '';
    696695            if ( 'normal' === $this->stats_metabox->context ) {
    697                 $display_name = ' - ' . bp_core_get_user_displayname( $user_id );
     696                $display_name = bp_core_get_user_displayname( $user_id );
     697            } else {
     698                $display_name = __( 'Member', 'buddypress' );
    698699            }
    699700
     
    701702            add_meta_box(
    702703                'bp_members_admin_user_stats',
    703                 sprintf( _x( 'Stats%s', 'members user-admin edit screen', 'buddypress' ), $display_name ),
     704                sprintf( _x( "%s's Stats", 'members user-admin edit screen', 'buddypress' ), $display_name ),
    704705                array( $this, 'user_admin_stats_metabox' ),
    705706                get_current_screen()->id,
Note: See TracChangeset for help on using the changeset viewer.