Skip to content

Commit

Permalink
Seimplify hierarchical term selector strings. (#13938)
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia authored and youknowriad committed Mar 20, 2019
1 parent 48100fa commit 24884f9
Showing 1 changed file with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,21 +370,15 @@ class HierarchicalTermSelector extends Component {
const newTermSubmitLabel = newTermButtonLabel;
const inputId = `editor-post-taxonomies__hierarchical-terms-input-${ instanceId }`;
const filterInputId = `editor-post-taxonomies__hierarchical-terms-filter-${ instanceId }`;
const filterLabel = sprintf(
_x( 'Search %s', 'term' ),
get(
this.props.taxonomy,
[ 'name' ],
slug === 'category' ? __( 'Categories' ) : __( 'Terms' )
)
const filterLabel = get(
this.props.taxonomy,
[ 'labels', 'search_items' ],
__( 'Search Terms' )
);
const groupLabel = sprintf(
_x( 'Available %s', 'term' ),
get(
this.props.taxonomy,
[ 'name' ],
slug === 'category' ? __( 'Categories' ) : __( 'Terms' )
)
const groupLabel = get(
this.props.taxonomy,
[ 'name' ],
__( 'Terms' )
);
const showFilter = availableTerms.length >= MIN_TERMS_COUNT_FOR_FILTER;

Expand Down

0 comments on commit 24884f9

Please sign in to comment.