Make WordPress Core

Opened 4 hours ago

Last modified 59 minutes ago

#62908 new enhancement

Editor: Add option to ignore sticky posts in Query block

Reported by: mamaduka's profile Mamaduka Owned by:
Milestone: 6.8 Priority: normal
Severity: normal Version:
Component: Editor Keywords: gutenberg-merge has-patch
Focuses: Cc:

Description

Introduce a new ignore value for the sticky query argument. When this value is used, the query won't prepend sticky posts at the top; instead, it will display them in the natural order of the query.

Gutenberg PR: https://github.com/WordPress/gutenberg/pull/69057.

Attachments (2)

Screenshot 2025-02-06 150018.png (60.5 KB) - added by mikinc860 57 minutes ago.
Screenshot 2025-02-06 150041.png (116.3 KB) - added by mikinc860 57 minutes ago.

Download all attachments as: .zip

Change History (4)

This ticket was mentioned in PR #8265 on WordPress/wordpress-develop by @Mamaduka.


4 hours ago
#1

  • Keywords has-patch added

Introduce a new ignore value for the sticky query argument. When this value is used, the query won't prepend sticky posts at the top; instead, it will display them in the natural order of the query.

Related: https://github.com/WordPress/wordpress-develop/pull/8228
Gutenberg PR: https://github.com/WordPress/gutenberg/pull/69057
Trac ticket: https://core.trac.wordpress.org/ticket/62908#ticket

#2 @mikinc860
59 minutes ago

Test Report

This report confirms the functionality of the patch provided.
Tested Patch: https://github.com/WordPress/wordpress-develop/pull/8265

Environment

OS: Windows 11
Web Server: WordPress Playground
PHP: Playground Default
WordPress Version: 6.8-alpha-20250125.203533
Browser: Chrome
Theme: Twenty Twenty-Five v1.0
Active Plugins: None

Actual Results

Front-end behavior: The patch resolved the issue successfully.
Backend behavior: When sticky posts are selected to be included, the query does not prepend sticky posts at the top, instead displaying them in the natural order of the query.

Note: See TracTickets for help on using tickets.