diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 3b81242f4d..5edef2d0c5 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1739,7 +1739,7 @@ if ( ! function_exists( 'wp_notify_moderator' ) ) : $comment_author_domain = gethostbyaddr( $comment->comment_author_IP ); } - $comments_waiting = $wpdb->get_var( "SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'" ); + $comments_waiting = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'" ); // The blogname option is escaped with esc_html on the way into the database in sanitize_option // we want to reverse this for the plain text arena of emails. diff --git a/wp-includes/version.php b/wp-includes/version.php index 8ba4f065dc..7730b1bb1c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46874'; +$wp_version = '5.4-alpha-46878'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.