#57700 closed defect (bug) (fixed)
Incorrect $order_by parameter name in personal data exporter and eraser
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.2 | Priority: | normal |
| Severity: | normal | Version: | 4.9.6 |
| Component: | Comments | Keywords: | good-first-bug has-patch |
| Focuses: | privacy | Cc: |
Description
[42888] / #43440 and [42994] / #43442 introduced these two functions:
wp_comments_personal_data_exporter()wp_comments_personal_data_eraser()
Both functions call get_comments() with 'order_by' => 'comment_ID' as part of the arguments. However, the actual parameter name is orderby.
This does not seem to affect anything in practice, as the incorrect parameter name is just ignored, and the orderby parameter defaults to comment_date_gmt instead, which should result in the same order on a typical installation.
So the order_by parameter here can either be removed or corrected to orderby.
Change History (5)
This ticket was mentioned in PR #4059 on WordPress/wordpress-develop by shariffff.
3 years ago
#1
- Keywords has-patch added; needs-patch removed
#4
@
3 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 55324:
@SergeyBiryukov commented on PR #4059:
3 years ago
#5
Thanks for the PR! Merged in r55324.
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/57700 57700]