Make WordPress Core


Ignore:
Timestamp:
07/11/2023 05:01:05 AM (17 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-admin/includes/admin.php

    r56059 r56199  
    7272/** WordPress Theme Administration API */
    7373require_once ABSPATH . 'wp-admin/includes/theme.php';
    74 require_once ABSPATH . 'wp-admin/includes/theme-previews.php';
    7574
    7675/** WordPress Privacy Functions */
Note: See TracChangeset for help on using the changeset viewer.