Opened 15 years ago
Closed 15 years ago
#13666 closed defect (bug) (fixed)
"sticky" shouldn't be added to paged posts
Reported by: | iandstewart | Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | has-patch |
Focuses: | Cc: |
Description
Sticky posts are routinely styled by WordPress themers with the "sticky" class added to get_post_class if a post is sticky and it's in the blog loop (is_home). But, currently, that means paged posts are also getting "sticky" styles and appearing like "sticky" posts out of joint.
Attached is a diff checking to see if a post is paged before adding sticky to the array of post classes
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Stickies are only fetched in WP_Query::get_posts() if page <= 1, so I think this is safe.