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

@@ -12,7 +12,7 @@ $output = '';
// Loop through data for each league
foreach ( $leagues as $league ):
$data = sportspress_get_team_columns_data( $id, $league->term_id );
$data = sp_get_team_columns_data( $id, $league->term_id );
if ( sizeof( $data ) <= 1 )
continue;
@@ -40,7 +40,7 @@ foreach ( $leagues as $league ):
$output .= '<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">';
foreach( $labels as $key => $value ):
$output .= '<td class="data-' . $key . '">' . sportspress_array_value( $row, $key, '&mdash;' ) . '</td>';
$output .= '<td class="data-' . $key . '">' . sp_array_value( $row, $key, '&mdash;' ) . '</td>';
endforeach;
$output .= '</tr>';