Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

burhandodhy
Copy link
Contributor

@burhandodhy burhandodhy commented Mar 5, 2025

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:

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
1 participant