From ed3e924683008f82cd5df192b4cbb893ecb3d026 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 17 Dec 2019 16:43:22 +0000 Subject: [PATCH] Upgrade/Install: Remove unused global in `upgrade_430_fix_comments()`. Props adnan.limdi. Fixes #41970. git-svn-id: https://develop.svn.wordpress.org/trunk@46972 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/upgrade.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 86d7dedc78..9bdc2e77ed 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/wp-admin/includes/upgrade.php @@ -1962,11 +1962,10 @@ function upgrade_430() { * @ignore * @since 4.3.0 * - * @global int $wp_current_db_version The old (current) database version. - * @global wpdb $wpdb WordPress database abstraction object. + * @global wpdb $wpdb WordPress database abstraction object. */ function upgrade_430_fix_comments() { - global $wp_current_db_version, $wpdb; + global $wpdb; $content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );