Add result equations via presets

This commit is contained in:
Brian Miyaji
2015-10-07 01:12:47 +11:00
parent 5324a71c94
commit 56250ddcc3

View File

@@ -147,6 +147,7 @@ class SP_Admin_Sports {
if ( empty( $post ) ) continue; if ( empty( $post ) ) continue;
$id = self::insert_preset_post( $post, $index ); $id = self::insert_preset_post( $post, $index );
if ( is_array( $result ) && array_key_exists( 'primary', $result ) ) $primary_result = $post['post_name']; if ( is_array( $result ) && array_key_exists( 'primary', $result ) ) $primary_result = $post['post_name'];
update_post_meta( $id, 'sp_equation', sp_array_value( $result, 'equation', null ) );
} }
// Make sure statistics and metrics have greater menu order than performance // Make sure statistics and metrics have greater menu order than performance