Make WordPress Core

Changeset 33539


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

Customizer: Use hash_equals() for widgets.

Merge of [33535] to the 3.9 branch.

File:
1 edited

Legend:

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

    r29389 r33539  
    11641164        }
    11651165
    1166         if ( $this->get_instance_hash_key( $decoded ) !== $value['instance_hash_key'] ) {
     1166        if ( ! hash_equals( $this->get_instance_hash_key( $decoded ), $value['instance_hash_key'] ) ) {
    11671167            return null;
    11681168        }
Note: See TracChangeset for help on using the changeset viewer.