Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General: Escape nonce used for block theme activation.
Add `wp_json_encode()` as an escaping function when setting the `WP_BLOCK_THEME_ACTIVATE_NONCE` global on the block theme preview screen. This account for custom nonce implementations making use of special characters that require escaping in JavaScript strings. Props antonvlasenko, ramonopoly. Fixes #58712. git-svn-id: https://develop.svn.wordpress.org/trunk@56218 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information