[wp-trac] [WordPress Trac] #57822: Query Loop block showing all posts when Sticky Posts set to "Only"

WordPress Trac noreply at wordpress.org
Wed Mar 1 16:13:30 UTC 2023


#57822: Query Loop block showing all posts when Sticky Posts set to "Only"
-------------------------------------------------+-------------------------
 Reporter:  RavanH                               |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.2
Component:  Editor                               |     Version:  5.8
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch gutenberg-merge has-       |     Focuses:
  testing-info commit                            |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55447" 55447]:
 {{{
 #!CommitTicketReference repository="" revision="55447"
 Editor: Exclude non-sticky posts in Query Loop Block when set to "Only".

 Fixes a front-end issue to not include non-sticky posts in the Query Loop
 block when it's "Sticky Post" is set to "Only", meaning only show sticky
 posts.

 This change was made in Gutenberg between 5.8 to 6.0, but was not merged
 into Core.

 Reference:
 *
 [https://github.com/WordPress/gutenberg/blob/42dad571eac32c41a7ff34f0da80fcc4e5ceb3bd/lib/compat/wordpress-6.1/blocks.php#L171-L183
 Gutenberg code]

 Follow-up to [50945].

 Props RavanH, sc0ttkclark, ocean90, sc0ttkclark, hellofromTonya,
 ntsekouras.
 Fixes #57822.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57822#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list