From e249e1aa285cee90ac6d0670170ac24d4e36ff12 Mon Sep 17 00:00:00 2001 From: danielbachhuber Date: Mon, 2 Oct 2023 22:42:24 +0000 Subject: [PATCH] Editor: Add function prefix to avoid conflicts. Transforms `initialize_theme_preview_hooks` to `wp_initialize_theme_preview_hooks` to avoid conflicts with third-party code. Follow up to [56529]. Props okat. See #59000. Built from https://develop.svn.wordpress.org/trunk@56757 git-svn-id: http://core.svn.wordpress.org/trunk@56269 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-filters.php | 2 +- wp-includes/theme-previews.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 090ee61d51..99116470d5 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -531,7 +531,7 @@ 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 ); +add_action( 'plugins_loaded', 'wp_initialize_theme_preview_hooks', 1 ); // Calendar widget cache. add_action( 'save_post', 'delete_get_calendar_cache' ); diff --git a/wp-includes/theme-previews.php b/wp-includes/theme-previews.php index d3f5c631c9..882f3e0c0f 100644 --- a/wp-includes/theme-previews.php +++ b/wp-includes/theme-previews.php @@ -83,7 +83,7 @@ function wp_block_theme_activate_nonce() { * * @since 6.3.2 */ -function initialize_theme_preview_hooks() { +function wp_initialize_theme_preview_hooks() { if ( ! empty( $_GET['wp_theme_preview'] ) ) { add_filter( 'stylesheet', 'wp_get_theme_preview_path' ); add_filter( 'template', 'wp_get_theme_preview_path' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index dad462e17d..51fd6e15da 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-beta1-56756'; +$wp_version = '6.4-beta1-56757'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.