Skip to content

Commit

Permalink
Merge pull request #2775 from Automattic/fix/tag-display-name-consist…
Browse files Browse the repository at this point in the history
…ency

Reader: use tag.display_name to display tag names
  • Loading branch information
blowery committed Jan 26, 2016
2 parents 4770e3f + 3faa58e commit 40ea0bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions client/reader/post-byline/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var PostByline = React.createClass( {

renderAuthorName: function() {
const post = this.props.post,
gravatar = ( <Gravatar user={post.author} size={ 24 } /> ),
gravatar = ( <Gravatar user={ post.author } size={ 24 } /> ),
authorName = ( <span className="byline__author-name">{ post.author.name }</span> );

if ( ! post.author.URL ) {
Expand Down Expand Up @@ -73,11 +73,11 @@ var PostByline = React.createClass( {
<a className="reader-post-byline__date-link"
onClick={ this.recordDateClick }
href={ post.URL }
target="_blank"><PostTime date={ post.date } />{ this.props.icon ? <Gridicon icon="external" size={ 14 } /> : null }</a>
target="_blank"><PostTime date={ post.date } />{ this.props.icon ? <Gridicon icon="external" nonStandardSize size={ 14 } /> : null }</a>
</li> : null }
{ primaryTag ?
<li className="reader-post-byline__tag">
<a href={ '/tag/' + primaryTag.slug } className="ignore-click" onClick={ this.recordTagClick }><Gridicon icon="tag" size={ 16 } /> { primaryTag.name }</a>
<a href={ '/tag/' + primaryTag.slug } className="ignore-click" onClick={ this.recordTagClick }><Gridicon icon="tag" nonStandardSize size={ 16 } /> { primaryTag.display_name }</a>
</li> : null }
</ul>
);
Expand Down
2 changes: 1 addition & 1 deletion client/reader/sidebar/sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ module.exports = React.createClass( {
return (
<li className={ this.itemLinkClass( '/tag/' + tag.slug, { 'sidebar-dynamic-menu__tag': true } ) } key={ tag.ID } >
<a href={ tag.URL }>
{ tag.title || tag.slug }
{ tag.display_name || tag.slug }
</a>
{ tag.ID !== 'pending' ? <button className="sidebar-dynamic-menu__action" data-tag-slug={ tag.slug } onClick={ this.unfollowTag }>
<Gridicon icon="cross" size={ 24 } />
Expand Down
2 changes: 1 addition & 1 deletion client/reader/tag-stream/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var FeedStream = React.createClass( {
return this.translate( 'Loading Tag' );
}

return tag.title || tag.slug;
return tag.display_name || tag.slug;
},

isSubscribed: function() {
Expand Down

0 comments on commit 40ea0bb

Please sign in to comment.