summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorSergey Biryukov <sergeybiryukov@git.wordpress.org>2023-02-13 22:03:30 +0000
committerSergey Biryukov <sergeybiryukov@git.wordpress.org>2023-02-13 22:03:30 +0000
commitc07b57c69311e79c96e24cb104be73aacb8c635c (patch)
tree6677efd508795f7936438f8c4391f15fb4fb8e3c /src
parentb487e4c611003b2bab89ef76442927f4b2d83a20 (diff)
downloadwordpress-c07b57c69311e79c96e24cb104be73aacb8c635c.tar.gz
wordpress-c07b57c69311e79c96e24cb104be73aacb8c635c.zip
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55324 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src')
-rw-r--r--src/wp-includes/comment.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php
index d09dc4967c..a16a33c132 100644
--- a/src/wp-includes/comment.php
+++ b/src/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,
)