From c973689ff491317b63bcafb8fefcc70473a9587d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 23 Dec 2023 14:41:37 +0000 Subject: [PATCH] Customize: Remove unused `$wpdb` global in `_wp_customize_publish_changeset()`. Follow-up to [38810], [39180], [41192], [41824]. Props viralsampat. See #60021. git-svn-id: https://develop.svn.wordpress.org/trunk@57225 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/theme.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 81c91ab5cc..1638128b4c 100644 --- a/src/wp-includes/theme.php +++ b/src/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