Make WordPress Core


Ignore:
Timestamp:
07/11/2023 05:01:05 AM (15 months ago)
Author:
isabel_brison
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r56101 r56199  
    182182require ABSPATH . WPINC . '/block-template.php';
    183183require ABSPATH . WPINC . '/theme-templates.php';
     184require ABSPATH . WPINC . '/theme-previews.php';
    184185require ABSPATH . WPINC . '/template.php';
    185186require ABSPATH . WPINC . '/https-detection.php';
Note: See TracChangeset for help on using the changeset viewer.