diff --git a/admin/post-types/column.php b/admin/post-types/column.php index f2fcef18..4a4d715f 100644 --- a/admin/post-types/column.php +++ b/admin/post-types/column.php @@ -25,7 +25,6 @@ function sp_column_edit_columns() { 'title' => __( 'Label', 'sportspress' ), 'sp_key' => __( 'Key', 'sportspress' ), 'sp_format' => __( 'Format', 'sportspress' ), - 'sp_precision' => __( 'Precision', 'sportspress' ), 'sp_equation' => __( 'Equation', 'sportspress' ), 'sp_order' => __( 'Sort Order', 'sportspress' ), ); diff --git a/admin/post-types/statistic.php b/admin/post-types/statistic.php index 4b510b28..588e7458 100644 --- a/admin/post-types/statistic.php +++ b/admin/post-types/statistic.php @@ -25,7 +25,6 @@ function sp_statistic_edit_columns() { 'title' => __( 'Label', 'sportspress' ), 'sp_key' => __( 'Key', 'sportspress' ), 'sp_format' => __( 'Format', 'sportspress' ), - 'sp_precision' => __( 'Precision', 'sportspress' ), 'sp_equation' => __( 'Equation', 'sportspress' ), 'sp_order' => __( 'Sort Order', 'sportspress' ), ); diff --git a/admin/presets/baseball.php b/admin/presets/baseball.php index f16db198..cf22f13d 100644 --- a/admin/presets/baseball.php +++ b/admin/presets/baseball.php @@ -11,6 +11,8 @@ $sportspress_sports['baseball'] = array( 'post_name' => 'w', 'meta' => array( 'sp_equation' => '$w', + 'sp_format' => 'integer', + 'sp_precision' => 1, 'sp_priority' => 1, 'sp_order' => 'DESC', ), @@ -20,6 +22,8 @@ $sportspress_sports['baseball'] = array( 'post_name' => 'l', 'meta' => array( 'sp_equation' => '$l', + 'sp_format' => 'integer', + 'sp_precision' => 1, 'sp_priority' => 2, 'sp_order' => 'ASC', ), @@ -29,6 +33,8 @@ $sportspress_sports['baseball'] = array( 'post_name' => 'pct', 'meta' => array( 'sp_equation' => '$w / $eventsplayed', + 'sp_format' => 'decimal', + 'sp_precision' => 3, ), ), array( @@ -36,6 +42,8 @@ $sportspress_sports['baseball'] = array( 'post_name' => 'gb', 'meta' => array( 'sp_equation' => '( $wmax + $l - $w - $lmax ) / 2', + 'sp_format' => 'decimal', + 'sp_precision' => 2, ), ), array( @@ -43,6 +51,8 @@ $sportspress_sports['baseball'] = array( 'post_name' => 'rs', 'meta' => array( 'sp_equation' => '$rfor', + 'sp_format' => 'integer', + 'sp_precision' => 1, 'sp_priority' => 3, 'sp_order' => 'DESC', ), @@ -52,6 +62,8 @@ $sportspress_sports['baseball'] = array( 'post_name' => 'ra', 'meta' => array( 'sp_equation' => '$ragainst', + 'sp_format' => 'integer', + 'sp_precision' => 1, ), ), array( @@ -59,6 +71,8 @@ $sportspress_sports['baseball'] = array( 'post_name' => 'strk', 'meta' => array( 'sp_equation' => '$streak', + 'sp_format' => 'integer', + 'sp_precision' => 1, ), ), ), diff --git a/admin/settings/config.php b/admin/settings/config.php index 7d39a98d..230e4da0 100644 --- a/admin/settings/config.php +++ b/admin/settings/config.php @@ -9,13 +9,12 @@ $data = get_posts( $args ); ?>
-