Use wp_hash() instead of AUTH_KEY in WP_Customize_Widgets::get_instance_hash_key().

props juliobox.
fixes #28783.
Built from https://develop.svn.wordpress.org/trunk@29028


git-svn-id: http://core.svn.wordpress.org/trunk@28816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2014-07-08 17:17:14 +00:00
parent dc7c246da3
commit 0b921efe38
1 changed files with 1 additions and 2 deletions

View File

@ -1138,8 +1138,7 @@ final class WP_Customize_Widgets {
* @return string Widget instance's hash key.
*/
protected function get_instance_hash_key( $instance ) {
$hash = md5( AUTH_KEY . serialize( $instance ) );
return $hash;
return wp_hash( serialize( $instance ) );
}
/**