From 9f04d0fc3d0123fb123b1517a18e7b5b29008050 Mon Sep 17 00:00:00 2001 From: Nabil Kadimi Date: Sat, 26 May 2018 15:54:25 +0000 Subject: [PATCH] Remove dead code --- includes/class-sp-player.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/includes/class-sp-player.php b/includes/class-sp-player.php index 166b86f3..5240860d 100644 --- a/includes/class-sp-player.php +++ b/includes/class-sp-player.php @@ -110,19 +110,6 @@ class SP_Player extends SP_Custom_Post { * @return array */ public function data( $league_id, $admin = false, $section = -1 ) { - $args = array( - 'meta_query' => array( - 'relation' => 'OR', - array( - 'key' => 'sp_order', - 'compare' => 'NOT EXISTS', - ), - array( - 'key' => 'sp_order', - 'compare' => 'EXISTS', - ), - ), - ); $seasons = (array) $this->get_terms_sorted_by_sp_order( 'sp_season' ); $metrics = (array)get_post_meta( $this->ID, 'sp_metrics', true ); $stats = (array)get_post_meta( $this->ID, 'sp_statistics', true );