From db8a7180f09161177e6c9fbe3172fc22e53e1119 Mon Sep 17 00:00:00 2001 From: Nabil Kadimi Date: Wed, 26 Sep 2018 10:43:24 +0100 Subject: [PATCH] Fix "Skip if zero" not handling float representation (0.0*) --- includes/class-sp-player-list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index e4007537..0eaf0f71 100644 --- a/includes/class-sp-player-list.php +++ b/includes/class-sp-player-list.php @@ -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 {