Refactor
This commit is contained in:
@@ -124,10 +124,10 @@ class SP_Player extends SP_Custom_Post {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
$seasons = (array) $this->get_terms_sorted_by_sp_order( 'sp_season' );
|
$seasons = (array) $this->get_terms_sorted_by_sp_order( 'sp_season' );
|
||||||
$leagues = (array) sp_array_value( (array)get_post_meta( $this->ID, 'sp_leagues', true ), $league_id );
|
|
||||||
uksort( $leagues, 'sp_sort_terms' );
|
|
||||||
$metrics = (array)get_post_meta( $this->ID, 'sp_metrics', true );
|
$metrics = (array)get_post_meta( $this->ID, 'sp_metrics', true );
|
||||||
$stats = (array)get_post_meta( $this->ID, 'sp_statistics', true );
|
$stats = (array)get_post_meta( $this->ID, 'sp_statistics', true );
|
||||||
|
$leagues = (array) sp_array_value( (array)get_post_meta( $this->ID, 'sp_leagues', true ), $league_id );
|
||||||
|
uksort( $leagues, 'sp_sort_terms' );
|
||||||
$manual_columns = 'manual' == get_option( 'sportspress_player_columns', 'auto' ) ? true : false;
|
$manual_columns = 'manual' == get_option( 'sportspress_player_columns', 'auto' ) ? true : false;
|
||||||
|
|
||||||
$season_ids = array_filter(wp_list_pluck( $seasons, 'term_id' ));
|
$season_ids = array_filter(wp_list_pluck( $seasons, 'term_id' ));
|
||||||
|
|||||||
Reference in New Issue
Block a user