Fix calculated column totals in box score
This commit is contained in:
@@ -203,6 +203,14 @@ if ( true == $responsive && $mode == 'values' ){
|
|||||||
$i++;
|
$i++;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
|
|
||||||
|
foreach ( $labels as $key => $label ):
|
||||||
|
$format = sp_array_value( $formats, $key, 'number' );
|
||||||
|
if ( 'equation' === $format ):
|
||||||
|
$post = get_page_by_path( $key, OBJECT, 'sp_performance' );
|
||||||
|
if ( $post ) $totals[ $key ] = sp_solve( get_post_meta( $post->ID, 'sp_equation', true ), $totals, get_post_meta( $post->ID, 'sp_precision', true ) );
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user