From 008c4fe3c4779c88b62ebddb6868132da4bf7cbe Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 4 Aug 2015 04:52:16 +0000 Subject: [PATCH] Customizer: Use `hash_equals()` for widgets. Merge of [33535] to the 4.2 branch. Built from https://develop.svn.wordpress.org/branches/4.2@33536 git-svn-id: http://core.svn.wordpress.org/branches/4.2@33503 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-wp-customize-widgets.php b/wp-includes/class-wp-customize-widgets.php index 1a87581ebe..728bb5f04b 100644 --- a/wp-includes/class-wp-customize-widgets.php +++ b/wp-includes/class-wp-customize-widgets.php @@ -1124,7 +1124,7 @@ final class WP_Customize_Widgets { return null; } - if ( $this->get_instance_hash_key( $decoded ) !== $value['instance_hash_key'] ) { + if ( ! hash_equals( $this->get_instance_hash_key( $decoded ), $value['instance_hash_key'] ) ) { return null; }