Sort leagues in player editing page

This commit is contained in:
Nabil Kadimi
2018-05-26 15:43:53 +00:00
parent 68e205e99b
commit 18f12bb32f

View File

@@ -34,6 +34,7 @@ class SP_Meta_Box_Player_Statistics {
), ),
); );
$leagues = get_the_terms( $post->ID, 'sp_league', $args ); $leagues = get_the_terms( $post->ID, 'sp_league', $args );
usort( $leagues, 'sp_sort_terms' );
$league_num = sizeof( $leagues ); $league_num = sizeof( $leagues );
$sections = get_option( 'sportspress_player_performance_sections', -1 ); $sections = get_option( 'sportspress_player_performance_sections', -1 );
$show_career_totals = 'yes' === get_option( 'sportspress_player_show_career_total', 'no' ) ? true : false; $show_career_totals = 'yes' === get_option( 'sportspress_player_show_career_total', 'no' ) ? true : false;