Description:
When using filters to sort a query, we are specifying fallback’s for the default behaviour when no filter has been selected.
These are not applying and the default sort is being used.
Step-by-step reproduction instructions:
- Open the Post Editor/Site Editor
- Create a Posts Query
- Add filters including a field for the meta key (e.g. “orderby”) and a field for the sort direction (e.g. “direction”)
- Specify the fallback’s for each of these
- Note they are not applied by default when no filter has been explicitly selected
Screenshots, screen recording, code snippet
Environment info
- WordPress version: 6.3.1
- Cwicly Plugin version: 1.3.2.1