diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index c08073326c..a3ea1537cb 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -532,6 +532,9 @@ add_action( 'admin_enqueue_scripts', '_wp_customize_loader_settings' ); add_action( 'delete_attachment', '_delete_attachment_theme_mod' ); add_action( 'transition_post_status', '_wp_keep_alive_customize_changeset_dependent_auto_drafts', 20, 3 ); +// Block Theme Previews. +add_action( 'plugins_loaded', 'initialize_theme_preview_hooks', 1 ); + // Calendar widget cache. add_action( 'save_post', 'delete_get_calendar_cache' ); add_action( 'delete_post', 'delete_get_calendar_cache' ); diff --git a/wp-includes/theme-previews.php b/wp-includes/theme-previews.php index e8e4a6a8c8..d3f5c631c9 100644 --- a/wp-includes/theme-previews.php +++ b/wp-includes/theme-previews.php @@ -75,10 +75,19 @@ function wp_block_theme_activate_nonce() {