PluginProbe
Gutenberg / 14.5.2
Gutenberg v14.5.2
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
← All changes | build/widgets/blocks/legacy-widget.php +1 -1 12.6.0 → 14.5.2 View file →
@@ -33,9 +33,9 @@
33 33 }
34 34
35 35 if ( isset( $attributes['instance']['encoded'], $attributes['instance']['hash'] ) ) {
36 36 $serialized_instance = base64_decode( $attributes['instance']['encoded'] );
37 - if ( wp_hash( $serialized_instance ) !== $attributes['instance']['hash'] ) {
37 + if ( ! hash_equals( wp_hash( $serialized_instance ), (string) $attributes['instance']['hash'] ) ) {
38 38 return '';
39 39 }
40 40 $instance = unserialize( $serialized_instance );
41 41 } else {