Add fallback for offense and defense stats
This commit is contained in:
@@ -832,7 +832,11 @@ if ( !function_exists( 'sp_post_checklist' ) ) {
|
||||
<ul class="categorychecklist form-no-clear">
|
||||
<li class="sp-select-all-container"><label class="selectit"><input type="checkbox" class="sp-select-all"> <strong><?php _e( 'Select All', 'sportspress' ); ?></strong></label></li>
|
||||
<?php
|
||||
$selected = sp_array_between( (array)get_post_meta( $post_id, $meta, false ), 0, $index );
|
||||
$selected = (array)get_post_meta( $post_id, $slug, false );
|
||||
if ( ! sizeof( $selected ) ) {
|
||||
$selected = (array)get_post_meta( $post_id, $meta, false );
|
||||
}
|
||||
$selected = sp_array_between( $selected, 0, $index );
|
||||
if ( empty( $posts ) ):
|
||||
$query = array( 'post_type' => $meta, 'numberposts' => -1, 'post_per_page' => -1, 'orderby' => 'menu_order' );
|
||||
if ( $meta == 'sp_player' ):
|
||||
|
||||
Reference in New Issue
Block a user