From 371afa317c1021228255fbb3bb2d10ff0c10614f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 13 Feb 2023 22:05:22 +0000 Subject: [PATCH] Comments: Use correct `orderby` parameter name in personal data exporter and eraser. This ensures that `get_comments()` is called with the correct parameter name in: * `wp_comments_personal_data_exporter()` * `wp_comments_personal_data_eraser()` Follow-up to [42888], [42994]. Props smeunus, kapilpaul, SergeyBiryukov. Fixes #57700. Built from https://develop.svn.wordpress.org/trunk@55324 git-svn-id: http://core.svn.wordpress.org/trunk@54857 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index d09dc4967c..a16a33c132 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -3692,7 +3692,7 @@ function wp_comments_personal_data_exporter( $email_address, $page = 1 ) { 'author_email' => $email_address, 'number' => $number, 'paged' => $page, - 'order_by' => 'comment_ID', + 'orderby' => 'comment_ID', 'order' => 'ASC', 'update_comment_meta_cache' => false, ) @@ -3815,7 +3815,7 @@ function wp_comments_personal_data_eraser( $email_address, $page = 1 ) { 'author_email' => $email_address, 'number' => $number, 'paged' => $page, - 'order_by' => 'comment_ID', + 'orderby' => 'comment_ID', 'order' => 'ASC', 'include_unapproved' => true, ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 6fbeb0a26e..b1eb594777 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta1-55323'; +$wp_version = '6.2-beta1-55324'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.