Fix filter players by team closes #23
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.7
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -183,7 +183,7 @@ class SP_Admin_CPT_Player extends SP_Admin_CPT {
|
||||
|
||||
if ( $typenow == 'sp_player' ) {
|
||||
|
||||
if ( isset( $_GET['team'] ) ) {
|
||||
if ( ! empty( $_GET['team'] ) ) {
|
||||
$query->query_vars['meta_value'] = $_GET['team'];
|
||||
$query->query_vars['meta_key'] = 'sp_team';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user