From 9b09f2c239a6fdceddaae6b81c2d4dea8be1d618 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 23 Dec 2023 14:43:22 +0000 Subject: [PATCH] Customize: Remove unused `$wpdb` global in `_wp_customize_publish_changeset()`. Follow-up to [38810], [39180], [41192], [41824]. Props viralsampat. See #60021. Built from https://develop.svn.wordpress.org/trunk@57225 git-svn-id: http://core.svn.wordpress.org/trunk@56731 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 3 +-- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 81c91ab5cc..1638128b4c 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -3591,7 +3591,6 @@ function _wp_customize_include() { * @since 4.7.0 * @access private * - * @global wpdb $wpdb WordPress database abstraction object. * @global WP_Customize_Manager $wp_customize Customizer instance. * * @param string $new_status New post status. @@ -3599,7 +3598,7 @@ function _wp_customize_include() { * @param WP_Post $changeset_post Changeset post object. */ function _wp_customize_publish_changeset( $new_status, $old_status, $changeset_post ) { - global $wp_customize, $wpdb; + global $wp_customize; $is_publishing_changeset = ( 'customize_changeset' === $changeset_post->post_type diff --git a/wp-includes/version.php b/wp-includes/version.php index f72382ee7c..2905c61e3f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57224'; +$wp_version = '6.5-alpha-57225'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.