[wp-trac] [WordPress Trac] #63659: Adding the "order" or "orderby" query argument to the front page causes the latest news to be displayed
WordPress Trac
noreply at wordpress.org
Mon Mar 2 12:33:55 UTC 2026
#63659: Adding the "order" or "orderby" query argument to the front page causes the
latest news to be displayed
-------------------------------------+------------------------------
Reporter: oglekler | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch has-test-info | Focuses:
-------------------------------------+------------------------------
Comment (by alexodiy):
== Test Report
Patch tested: [https://github.com/WordPress/wordpress-develop/pull/9185 PR
#9185]
=== Steps to Reproduce
1. Settings > Reading > set "Your homepage displays" to "A static page",
pick any page as Homepage.
2. Visit `/` — static front page displays correctly.
3. Visit `/?order=test` — bug: latest posts archive displayed instead of
the front page.
4. Visit `/?orderby=test` — same bug.
=== Results After Applying Patch
* `/` — front page, correct.
* `/?order=test` — front page, correct.
* `/?orderby=test` — front page, correct.
* `/?order=test&orderby=date` — front page, correct.
* `/?paged=1` — front page, correct (existing whitelist not broken).
=== Environment
* WordPress: 6.8.1
* PHP: 8.1.10
* Server: Apache
* OS: Windows 10
* Theme: Twenty Twenty-Five
cc @oglekler
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63659#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list