Make WordPress Core

Changeset 33537


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

Customizer: Use hash_equals() for widgets.

Merge of [33535] to the 4.1 branch.

File:
1 edited

Legend:

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

    r30760 r33537  
    12001200        }
    12011201
    1202         if ( $this->get_instance_hash_key( $decoded ) !== $value['instance_hash_key'] ) {
     1202        if ( ! hash_equals( $this->get_instance_hash_key( $decoded ), $value['instance_hash_key'] ) ) {
    12031203            return null;
    12041204        }
Note: See TracChangeset for help on using the changeset viewer.