Skip to:
Content

bbPress.org


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/includes/common/template.php

    r5177 r5247  
    25862586        // User is viewing someone else's profile (so use their display name)
    25872587        } else {
    2588             $new_title['text'] = get_userdata( bbp_get_user_id() )->display_name;
     2588            $new_title['text'] = sprintf( esc_attr_x( "%s's", 'User viewing another users profile', 'bbpress' ), get_userdata( bbp_get_user_id() )->display_name );
    25892589        }
    25902590
    25912591        // User topics created
    25922592        if ( bbp_is_single_user_topics() ) {
    2593             $new_title['format'] = esc_attr__( "%s's Topics",        'bbpress' );
     2593            $new_title['format'] = esc_attr__( "%s Topics",        'bbpress' );
    25942594
    25952595        // User rueplies created
    25962596        } elseif ( bbp_is_single_user_replies() ) {
    2597             $new_title['format'] = esc_attr__( "%s's Replies",       'bbpress' );
     2597            $new_title['format'] = esc_attr__( "%s Replies",       'bbpress' );
    25982598
    25992599        // User favorites
    26002600        } elseif ( bbp_is_favorites() ) {
    2601             $new_title['format'] = esc_attr__( "%s's Favorites",     'bbpress' );
     2601            $new_title['format'] = esc_attr__( "%s Favorites",     'bbpress' );
    26022602
    26032603        // User subscriptions
    26042604        } elseif ( bbp_is_subscriptions() ) {
    2605             $new_title['format'] = esc_attr__( "%s's Subscriptions", 'bbpress' );
     2605            $new_title['format'] = esc_attr__( "%s Subscriptions", 'bbpress' );
    26062606
    26072607        // User "home"
    26082608        } else {
    2609             $new_title['format'] = esc_attr__( "%s's Profile",       'bbpress' );
     2609            $new_title['format'] = esc_attr__( "%s Profile",       'bbpress' );
    26102610        }
    26112611
Note: See TracChangeset for help on using the changeset viewer.