Make WordPress Core


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

Customizer: Use hash_equals() for widgets.

Merge of [33535] to the 4.2 branch.

File:
1 edited

Legend:

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

    r32243 r33536  
    11251125        }
    11261126
    1127         if ( $this->get_instance_hash_key( $decoded ) !== $value['instance_hash_key'] ) {
     1127        if ( ! hash_equals( $this->get_instance_hash_key( $decoded ), $value['instance_hash_key'] ) ) {
    11281128            return null;
    11291129        }
Note: See TracChangeset for help on using the changeset viewer.