Skip to content

Commit

Permalink
Customize: Remove unused $wpdb global in `_wp_customize_publish_cha…
Browse files Browse the repository at this point in the history
…ngeset()`.

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
  • Loading branch information
SergeyBiryukov committed Dec 23, 2023
1 parent 54a09a7 commit c973689
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wp-includes/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -3591,15 +3591,14 @@ 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.
* @param string $old_status Old post status.
* @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
Expand Down

0 comments on commit c973689

Please sign in to comment.