Display player metrics before and after common

This commit is contained in:
Brian Miyaji
2014-04-29 14:10:18 +10:00
parent af8708247c
commit 3629674013
3 changed files with 8 additions and 6 deletions

View File

@@ -709,7 +709,7 @@ if ( !function_exists( 'sp_draft_or_post_title' ) ) {
}
if ( !function_exists( 'sp_get_var_labels' ) ) {
function sp_get_var_labels( $post_type ) {
function sp_get_var_labels( $post_type, $neg = null ) {
$args = array(
'post_type' => $post_type,
'numberposts' => -1,
@@ -722,7 +722,8 @@ if ( !function_exists( 'sp_get_var_labels' ) ) {
$output = array();
foreach ( $vars as $var ):
$output[ $var->post_name ] = $var->post_title;
if ( $neg === null || ( $neg && $var->menu_order < 0 ) || ( ! $neg && $var->menu_order >= 0 ) )
$output[ $var->post_name ] = $var->post_title;
endforeach;
return $output;