Changeset 54565 for branches/5.8/src/wp-includes/blocks/legacy-widget.php
- Timestamp:
- 10/17/2022 06:08:38 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8/src/wp-includes/blocks/legacy-widget.php
r51422 r54565 47 47 if ( isset( $attributes['instance']['encoded'], $attributes['instance']['hash'] ) ) { 48 48 $serialized_instance = base64_decode( $attributes['instance']['encoded'] ); 49 if ( wp_hash( $serialized_instance ) !== $attributes['instance']['hash']) {49 if ( ! hash_equals( wp_hash( $serialized_instance ), (string) $attributes['instance']['hash'] ) ) { 50 50 return ''; 51 51 }
Note: See TracChangeset
for help on using the changeset viewer.