From a69ee99df987cf80aa2bd3f3dc2e56b2a116d93a Mon Sep 17 00:00:00 2001
From: Brian Miyaji
Date: Thu, 13 Feb 2014 01:59:59 +1100
Subject: [PATCH] All teams option in player list
---
admin/post-types/list.php | 10 +++---
functions.php | 76 +++++++++++++++++++++++++++++----------
2 files changed, 63 insertions(+), 23 deletions(-)
diff --git a/admin/post-types/list.php b/admin/post-types/list.php
index 4cb0c795..0de2a5b5 100644
--- a/admin/post-types/list.php
+++ b/admin/post-types/list.php
@@ -62,7 +62,7 @@ function sportspress_list_player_meta( $post ) {
'taxonomy' => 'sp_league',
'name' => 'sp_league',
'selected' => $league_id,
- 'values' => 'term_id'
+ 'values' => 'term_id',
);
sportspress_dropdown_taxonomies( $args );
?>
@@ -74,7 +74,7 @@ function sportspress_list_player_meta( $post ) {
'taxonomy' => 'sp_season',
'name' => 'sp_season',
'selected' => $season_id,
- 'values' => 'term_id'
+ 'values' => 'term_id',
);
sportspress_dropdown_taxonomies( $args );
?>
@@ -85,9 +85,11 @@ function sportspress_list_player_meta( $post ) {
$args = array(
'post_type' => 'sp_team',
'name' => 'sp_team',
- 'selected' => $team_id
+ 'show_option_all' => sprintf( __( 'All %s', 'sportspress' ), __( 'Teams', 'sportspress' ) ),
+ 'selected' => $team_id,
+ 'values' => 'ID',
);
- wp_dropdown_pages( $args );
+ sportspress_dropdown_pages( $args );
?>
diff --git a/functions.php b/functions.php
index 84a720c3..031583f8 100644
--- a/functions.php
+++ b/functions.php
@@ -386,7 +386,6 @@ if ( !function_exists( 'sportspress_post_checklist' ) ) {
?>