Changeset 54543 for branches/6.0/src/wp-includes/blocks/legacy-widget.php
- Timestamp:
- 10/17/2022 04:22:04 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/src/wp-includes/blocks/legacy-widget.php
r53157 r54543 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 }
Note: See TracChangeset
for help on using the changeset viewer.