Make WordPress Core

Changeset 33538


Ignore:
Timestamp:
08/03/2015 08:59:36 PM (9 years ago)
Author:
ocean90
Message:

Customizer: Use hash_equals() for widgets.

Merge of [33535] to the 4.0 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0/src/wp-includes/class-wp-customize-widgets.php

    r29488 r33538  
    11961196        }
    11971197
    1198         if ( $this->get_instance_hash_key( $decoded ) !== $value['instance_hash_key'] ) {
     1198        if ( ! hash_equals( $this->get_instance_hash_key( $decoded ), $value['instance_hash_key'] ) ) {
    11991199            return null;
    12001200        }
Note: See TracChangeset for help on using the changeset viewer.