[wp-trac] [WordPress Trac] #63359: Are ignore_sticky_posts working as expected?
WordPress Trac
noreply at wordpress.org
Sun Apr 27 15:45:29 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 | Resolution:
Keywords: needs-patch has-testing-info 2nd- | Focuses:
opinion |
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* keywords: needs-patch has-testing-info => needs-patch has-testing-info
2nd-opinion
Comment:
Replying to [comment:1 karthikeya01]:
> Yes, I can reproduce it. I noticed that this only happens in the admin
area — the sticky posts are not displayed at the top there. When I try the
same WP_Query on frontend pages, the sticky posts appear at the top as
expected.
> This might be the intended behavior:
> https://github.com/WordPress/wordpress-
develop/blob/839c81706ebb2e29c4f70436eb62cec16602d0a7/src/wp-includes
/class-wp-query.php#L3563
Very nice spot! Now I can truly reproduce the bug I was willing to
reproduce originally, I might close this report, and open a new one to
provide the full information and avoid confusions.
Still, I'm not 100% confident that this behavior is ideal (admin-level not
being able to reproduce the listings to my requirements). I think that the
admin hindrance should be removed.
So I will be leaving this open this for further opinions on this topic.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63359#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list