From 5f046745ffb3186ad180c07f6bdbe94477024691 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 30 Jun 2020 11:28:55 +0000 Subject: [PATCH] Comments: Correct `$wpdb->prepare()` usage in `_wp_batch_update_comment_type()`. Follow-up to [47597], [48225]. See #50513, #49236. git-svn-id: https://develop.svn.wordpress.org/trunk@48227 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index 0f0ec67082..8a64a530dc 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -3847,9 +3847,9 @@ function _wp_batch_update_comment_type() { SET comment_type = 'comment' WHERE comment_type = '' ORDER BY comment_ID DESC - LIMIT %d" - ), - $comment_batch_size + LIMIT %d", + $comment_batch_size + ) ); delete_option( $lock_name );