From 0f79e8e5b2224d8e6005751e1bb1b462a94e1663 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 20 Feb 2014 14:26:13 +1100 Subject: [PATCH] Dropdown function and data table classifying --- functions.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/functions.php b/functions.php index 1fc56e4b..dccc87d1 100644 --- a/functions.php +++ b/functions.php @@ -312,8 +312,8 @@ if ( !function_exists( 'sportspress_dropdown_pages' ) ) { 'numberposts' => -1, 'posts_per_page' => -1, 'child_of' => 0, - 'sort_order' => 'ASC', - 'sort_column' => 'post_title', + 'order' => 'ASC', + 'orderby' => 'title', 'hierarchical' => 1, 'exclude' => null, 'include' => null, @@ -367,7 +367,7 @@ if ( !function_exists( 'sportspress_dropdown_pages' ) ) { printf( '', $args['option_all_value'], selected( $selected, $args['option_all_value'], false ), $args['show_option_all'] ); endif; if ( $args['show_option_none'] ): - printf( '', $args['option_none_value'], selected( $selected, $args['option_none_value'], false ), $args['show_option_none'] ); + printf( '', $args['option_none_value'], selected( $selected, $args['option_none_value'], false ), ( $args['show_option_none'] === true ? '' : $args['show_option_none'] ) ); endif; if ( $args['prepend_options'] && is_array( $args['prepend_options'] ) ): foreach( $args['prepend_options'] as $slug => $label ): @@ -760,7 +760,7 @@ if ( !function_exists( 'sportspress_edit_league_table' ) ) { function sportspress_edit_league_table( $columns = array(), $data = array(), $placeholders = array() ) { ?>
- +
@@ -1093,7 +1093,7 @@ if ( !function_exists( 'sportspress_edit_event_players_table' ) ) { function sportspress_edit_event_players_table( $columns = array(), $data = array(), $team_id ) { ?>
-
+
@@ -1111,14 +1111,14 @@ if ( !function_exists( 'sportspress_edit_event_players_table' ) ) { if ( !$player_id ) continue; $number = get_post_meta( $player_id, 'sp_number', true ); ?> - + $label ): $value = sportspress_array_value( $player_statistics, $column, '' ); ?>
#
- +