diff --git a/wp-includes/class-wp-comment-query.php b/wp-includes/class-wp-comment-query.php index b4c8445f27..eace9ccd01 100644 --- a/wp-includes/class-wp-comment-query.php +++ b/wp-includes/class-wp-comment-query.php @@ -584,8 +584,6 @@ class WP_Comment_Query { if ( ! empty( $this->query_vars['include_unapproved'] ) ) { $include_unapproved = wp_parse_list( $this->query_vars['include_unapproved'] ); - $unapproved_ids = array(); - $unapproved_emails = array(); foreach ( $include_unapproved as $unapproved_identifier ) { // Numeric values are assumed to be user IDs. if ( is_numeric( $unapproved_identifier ) ) { @@ -1013,14 +1011,10 @@ class WP_Comment_Query { * * @since 4.4.0 * - * @global wpdb $wpdb WordPress database abstraction object. - * * @param WP_Comment[] $comments Array of top-level comments whose descendants should be filled in. * @return array */ protected function fill_descendants( $comments ) { - global $wpdb; - $levels = array( 0 => wp_list_pluck( $comments, 'comment_ID' ), ); diff --git a/wp-includes/version.php b/wp-includes/version.php index a2c5f31937..46204db1b5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55558'; +$wp_version = '6.3-alpha-55559'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.