Retrieves MAC for a serialized widget instance string.
Description
Allows values posted back from JS to be rejected if any tampering of the data has occurred.
Parameters
$serialized_instancestringrequired- Widget instance.
Source
protected function get_instance_hash_key( $serialized_instance ) {
return wp_hash( $serialized_instance );
}
Changelog
| Version | Description |
|---|---|
| 3.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.