FIX 2: Least condition was not recognized (&lt; instead of <)

This commit is contained in:
savvasha
2022-01-15 08:22:56 +02:00
parent bdde8fe803
commit 17909947da

View File

@@ -540,7 +540,7 @@ if ( ! function_exists( 'sp_get_post_condition' ) ) {
'=' => sprintf( esc_attr__( 'Equal %s', 'sportspress' ), $label ), '=' => sprintf( esc_attr__( 'Equal %s', 'sportspress' ), $label ),
'else' => sprintf( esc_attr__( 'Default', 'sportspress' ), $label ), 'else' => sprintf( esc_attr__( 'Default', 'sportspress' ), $label ),
); );
return sp_array_value( $conditions, $condition, '&mdash;' ); return sp_array_value( $conditions, wp_specialchars_decode( $condition ), '&mdash;' );
else : else :
return '&mdash;'; return '&mdash;';
endif; endif;