#46348 closed defect (bug) (invalid)
WP query order parameter does not default to DESC
| Reported by: | skandha | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Query | Version: | 5.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Since the WordPress 5.1 update the WP query => order by parameter does not seem to default to 'DESC'. As a result all the posts are displayed in ascending order in terms of date where as it was showing latest posts first before WordPress Update to 5.1.
Change History (4)
#1
@
7 years ago
- Summary WP query order by parameter does not default to DESC → WP query order parameter does not default to DESC
#2
@
7 years ago
- Keywords reporter-feedback added
- Severity critical → normal
Hi there and welcome to Trac!
Looking at the source code at https://core.trac.wordpress.org/browser/tags/5.1/src/wp-includes/class-wp-query.php#L1654, I still see DESC as the default. Sounds like something else is causing this on your site.
Can you verify that this still happens on a clean install with no plugins active?
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I meant order parameter and not order by.