Replace deprecated functions

This commit is contained in:
Brian Miyaji
2014-03-28 16:53:15 +11:00
parent 461b4f394c
commit 1add35a47f
58 changed files with 348 additions and 471 deletions

View File

@@ -3,8 +3,8 @@ if ( ! isset( $id ) )
$id = get_the_ID();
$teams = (array)get_post_meta( $id, 'sp_team', false );
$results = array_filter( sportspress_array_combine( $teams, (array)get_post_meta( $id, 'sp_results', true ) ), 'array_filter' );
$result_labels = sportspress_get_var_labels( 'sp_result' );
$results = array_filter( sp_array_combine( $teams, (array)get_post_meta( $id, 'sp_results', true ) ), 'array_filter' );
$result_labels = sp_get_var_labels( 'sp_result' );
$output = '';
@@ -17,7 +17,7 @@ if ( empty( $results ) )
return false;
foreach( $results as $team_id => $result ):
if ( sportspress_array_value( $result, 'outcome', '-1' ) != '-1' ):
if ( sp_array_value( $result, 'outcome', '-1' ) != '-1' ):
unset( $result['outcome'] );