[wp-trac] [WordPress Trac] #61048: order sticky posts using the same order for posts

WordPress Trac noreply at wordpress.org
Mon Apr 22 11:51:21 UTC 2024


#61048: order sticky posts using the same order for posts
-------------------------+-----------------------------
 Reporter:  vladimir173  |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Query        |    Version:  6.5
 Severity:  major        |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Currently sticky posts are shown unordered.

 I suggest the following code amendments in includes/class-wp-query.php to
 order sticky posts in the same way as the regular posts ordered.

 {{{
 3509c3509,3511
 <                                               'lazy_load_term_meta'
 => $q['lazy_load_term_meta']
 ---
 >                                               'lazy_load_term_meta'
 => $q['lazy_load_term_meta'],
 >                                               'order'
 => $q['order'],
 >                                               'orderby'
 => $q['orderby']
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61048>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list