mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-05 09:40:13 +00:00
General: add nonce for block theme preview activation.
Adds a nonce so that activation works for block theme previews. Temporary fix until there is a REST API endpoint for activating themes. Props scruffian, peterwilsoncc, nithins53, nithi22, jomonthomaslobo1, poena, syamraj24, vivekawsm, mrinal013. Fixes #58712. git-svn-id: https://develop.svn.wordpress.org/trunk@56199 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -181,6 +181,7 @@ require ABSPATH . WPINC . '/class-wp-block-template.php';
|
||||
require ABSPATH . WPINC . '/block-template-utils.php';
|
||||
require ABSPATH . WPINC . '/block-template.php';
|
||||
require ABSPATH . WPINC . '/theme-templates.php';
|
||||
require ABSPATH . WPINC . '/theme-previews.php';
|
||||
require ABSPATH . WPINC . '/template.php';
|
||||
require ABSPATH . WPINC . '/https-detection.php';
|
||||
require ABSPATH . WPINC . '/https-migration.php';
|
||||
|
||||
Reference in New Issue
Block a user