Use wp_specialchars_decode() instead of htmlspecialchars_decode()

This commit is contained in:
savvasha
2022-01-15 08:22:29 +02:00
parent 1d0115cbba
commit bdde8fe803

View File

@@ -76,7 +76,7 @@ class SP_Meta_Box_Outcome_Details extends SP_Meta_Box_Config {
);
foreach ( $options as $key => $value ) :
printf( '<option value="%s" %s>%s</option>', esc_attr( $key ), selected( true, $key == htmlspecialchars_decode( $condition ), false ), esc_attr( $value ) );
printf( '<option value="%s" %s>%s</option>', esc_attr( $key ), selected( true, $key == wp_specialchars_decode( $condition ), false ), esc_attr( $value ) );
endforeach;
?>
</select>