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
This commit is contained in:
parent
ddf451dbb5
commit
008c4fe3c4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue