From 98d54b23c3630c813c11b4e25b493e20848cb54e Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Fri, 7 Feb 2014 06:43:56 +1100 Subject: [PATCH] Change player positions display in metrics and statistics when none selected --- admin/hooks/manage-posts-columns.php | 2 +- admin/settings/players.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/hooks/manage-posts-columns.php b/admin/hooks/manage-posts-columns.php index 25830bca..ff8e0126 100644 --- a/admin/hooks/manage-posts-columns.php +++ b/admin/hooks/manage-posts-columns.php @@ -19,7 +19,7 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) { echo get_the_terms( $post_id, 'sp_position' ) ? the_terms( $post_id, 'sp_position' ) : '—'; break; case 'sp_positions': - echo get_the_terms ( $post_id, 'sp_position' ) ? the_terms( $post_id, 'sp_position' ) : sprintf( __( 'All %s', 'sportspress' ), __( 'positions', 'sportspress' ) ); + echo get_the_terms ( $post_id, 'sp_position' ) ? the_terms( $post_id, 'sp_position' ) : '—'; break; case 'sp_team': $post_type = get_post_type( $post ); diff --git a/admin/settings/players.php b/admin/settings/players.php index 46916cea..64b641ef 100644 --- a/admin/settings/players.php +++ b/admin/settings/players.php @@ -20,7 +20,7 @@ $data = get_posts( $args ); > post_title; ?> - ID, 'sp_position' ) ? the_terms( $row->ID, 'sp_position' ) : sprintf( __( 'All %s', 'sportspress' ), __( 'positions', 'sportspress' ) ); ?> + ID, 'sp_position' ) ? the_terms( $row->ID, 'sp_position' ) : '—'; ?>   @@ -52,7 +52,7 @@ $data = get_posts( $args ); > post_title; ?> - ID, 'sp_position' ) ? the_terms( $row->ID, 'sp_position' ) : sprintf( __( 'All %s', 'sportspress' ), __( 'positions', 'sportspress' ) ); ?> + ID, 'sp_position' ) ? the_terms( $row->ID, 'sp_position' ) : '—'; ?> ID ); ?>