[wp-trac] [WordPress Trac] #63359: Are ignore_sticky_posts working as expected?
WordPress Trac
noreply at wordpress.org
Sun Apr 27 11:28:10 UTC 2025
#63359: Are ignore_sticky_posts working as expected?
--------------------------+------------------------------------------
Reporter: SirLouen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: major | Keywords: needs-patch has-testing-info
Focuses: |
--------------------------+------------------------------------------
== Bug Report
=== Description
According to the docs
> `ignore_sticky_posts` (boolean) – ignore post stickiness (available
since version 3.1, replaced caller_get_posts parameter). false (default):
**move sticky posts to the start of the set**. true: do not move sticky
posts to the start of the set.
Something feels to be going wrong with `ignore_sticky_posts` behaviour.
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 135.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.0
=== Steps to Reproduce
1. Install this simple plugin for testing:
https://raw.githubusercontent.com/SirLouen/wp-query-tester/refs/heads/main
/wp-query-tester.php
2. Create some posts in this order:
- First 1 sticky post
- Second 1 not sticky post
- Third 1 sticky post
- Fourth 1 not sticky post
3. Run the plugin in the menu
4. 🐞 Bug occurs
=== Expected Results
1. ✅ According to the docs, sticky should go first
=== Actual Results
1. ❌ Sticky results and the same as regular results.
=== Additional Notes
This topic is somehow correlated with this issue #63307 just as a
reference.
=== Supplemental Artifacts
Plugin repo: https://github.com/SirLouen/wp-query-tester/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63359>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list