Skip to content

Add ordering by ID for posts and terms in query_db - #4101

Merged
felipeelia merged 3 commits into
developfrom
fix/3275
Mar 6, 2025
Merged

felipeelia merged 3 commits into
developfrom
fix/3275

Conversation

@burhandodhy

@burhandodhy burhandodhy commented Mar 5, 2025 •

Copy link
Copy Markdown
Contributor

Description of the Change

This PR explicitly adds the filter to ensure that query in Post and Term indexable always use orderby ID. This prevents other plugins, such as Post Types Order, from modifying the order.

Closes #3275

How to test the Change

Install the Post Types Order plugin
Run a sync.
Ensure all posts are successfully synced.

Changelog Entry

Fixed - Prevent other code from modifying the ORDERBY clause in Post and Term indexable queries.

Credits

Props @burhandodhy @felipeelia

Checklist:

@burhandodhy burhandodhy added this to the 5.2.0 milestone Mar 6, 2025
@felipeelia
felipeelia merged commit de6b24c into develop Mar 6, 2025
@felipeelia
felipeelia deleted the fix/3275 branch March 6, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Advanced Post Types Order plugin interfering with IDs order in EP sync query

2 participants