Remove _n when not dependent
This commit is contained in:
@@ -59,8 +59,7 @@ if ( $current_teams ):
|
||||
if ( $link_teams ) $team_name = '<a href="' . get_post_permalink( $team ) . '">' . $team_name . '</a>';
|
||||
$teams[] = $team_name;
|
||||
endforeach;
|
||||
$label = _n( 'Current Team', 'Current Teams', count( $teams ), 'sportspress' );
|
||||
$data[ $label ] = implode( ', ', $teams );
|
||||
$data[ __( 'Current Team', 'sportspress' ) ] = implode( ', ', $teams );
|
||||
endif;
|
||||
|
||||
if ( $past_teams ):
|
||||
|
||||
@@ -21,7 +21,7 @@ if ( $terms ):
|
||||
foreach ( $terms as $term ):
|
||||
$leagues[] = $term->name;
|
||||
endforeach;
|
||||
$data[ _n( 'Competition', 'Competitions', sizeof( $leagues ), 'sportspress' ) ] = implode( ', ', $leagues );
|
||||
$data[ __( 'Competitions', 'sportspress' ) ] = implode( ', ', $leagues );
|
||||
endif;
|
||||
|
||||
$terms = get_the_terms( $id, 'sp_season' );
|
||||
@@ -30,7 +30,7 @@ if ( $terms ):
|
||||
foreach ( $terms as $term ):
|
||||
$seasons[] = $term->name;
|
||||
endforeach;
|
||||
$data[ _n( 'Season', 'Seasons', sizeof( $seasons ), 'sportspress' ) ] = implode( ', ', $seasons );
|
||||
$data[ __( 'Seasons', 'sportspress' ) ] = implode( ', ', $seasons );
|
||||
endif;
|
||||
|
||||
$terms = get_the_terms( $id, 'sp_venue' );
|
||||
|
||||
Reference in New Issue
Block a user