Fix "Skip if zero" not handling float representation (0.0*)

This commit is contained in:
Nabil Kadimi
2018-09-26 10:43:24 +01:00
committed by GitHub
parent d83abf4b12
commit db8a7180f0

View File

@@ -639,7 +639,7 @@ class SP_Player_List extends SP_Secondary_Post {
// Rearrange data array to reflect values
foreach( $merged as $key => $value ):
if ( $crop && ! sp_array_value( $value, $orderby, 0 ) ) {
if ( $crop && ! ( float ) sp_array_value( $value, $orderby, 0 ) ) {
// Crop
unset( $merged[ $key ] );
} else {