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
This commit is contained in:
Sergey Biryukov 2023-12-23 14:41:37 +00:00
parent 54a09a7ec9
commit c973689ff4

View File

@ -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