From 17909947daa2f4e44ad8449404796b8a62d0e494 Mon Sep 17 00:00:00 2001 From: savvasha Date: Sat, 15 Jan 2022 08:22:56 +0200 Subject: [PATCH] FIX 2: Least condition was not recognized (< instead of <) --- includes/sp-core-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index 58de64ec..21f52b86 100644 --- a/includes/sp-core-functions.php +++ b/includes/sp-core-functions.php @@ -540,7 +540,7 @@ if ( ! function_exists( 'sp_get_post_condition' ) ) { '=' => sprintf( esc_attr__( 'Equal %s', 'sportspress' ), $label ), 'else' => sprintf( esc_attr__( 'Default', 'sportspress' ), $label ), ); - return sp_array_value( $conditions, $condition, '—' ); + return sp_array_value( $conditions, wp_specialchars_decode( $condition ), '—' ); else : return '—'; endif;