Skip to:
Content

bbPress.org

Changeset 5246


Ignore:
Timestamp:
01/06/2014 07:32:38 PM (12 years ago)
Author:
johnjamesjacoby
Message:

In bbp_title(), improve user profile logic to avoid "Your's" title text. Fixes #2503. (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/template.php

    r5230 r5246  
    25962596        // User is viewing someone else's profile (so use their display name)
    25972597        } else {
    2598             $new_title['text'] = get_userdata( bbp_get_user_id() )->display_name;
     2598            $new_title['text'] = sprintf( esc_attr_x( "%s's", 'User viewing another users profile', 'bbpress' ), get_userdata( bbp_get_user_id() )->display_name );
    25992599        }
    26002600
    26012601        // User topics created
    26022602        if ( bbp_is_single_user_topics() ) {
    2603             $new_title['format'] = esc_attr__( "%s's Topics",        'bbpress' );
     2603            $new_title['format'] = esc_attr__( "%s Topics",        'bbpress' );
    26042604
    26052605        // User rueplies created
    26062606        } elseif ( bbp_is_single_user_replies() ) {
    2607             $new_title['format'] = esc_attr__( "%s's Replies",       'bbpress' );
     2607            $new_title['format'] = esc_attr__( "%s Replies",       'bbpress' );
    26082608
    26092609        // User favorites
    26102610        } elseif ( bbp_is_favorites() ) {
    2611             $new_title['format'] = esc_attr__( "%s's Favorites",     'bbpress' );
     2611            $new_title['format'] = esc_attr__( "%s Favorites",     'bbpress' );
    26122612
    26132613        // User subscriptions
    26142614        } elseif ( bbp_is_subscriptions() ) {
    2615             $new_title['format'] = esc_attr__( "%s's Subscriptions", 'bbpress' );
     2615            $new_title['format'] = esc_attr__( "%s Subscriptions", 'bbpress' );
    26162616
    26172617        // User "home"
    26182618        } else {
    2619             $new_title['format'] = esc_attr__( "%s's Profile",       'bbpress' );
     2619            $new_title['format'] = esc_attr__( "%s Profile",       'bbpress' );
    26202620        }
    26212621
Note: See TracChangeset for help on using the changeset viewer.