WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #40661, comment 3


Ignore:
Timestamp:
06/22/2017 05:50:09 PM (3 years ago)
Author:
jarocks
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40661, comment 3

    initial v1  
    11For consistency with the `::parse_query()` method in `WP_Query`, it might make more sense to implement this similarly to the filter `posts_pre_query`. See [attachment:40661.diff] for my iteration of a `terms_pre_query` filter.
    22
    3 This is more a proof of concept than anything else, I'm not sure if it makes sense to leave the burden of handling term caching as well as the `hide_empty` and the `pad_counts` parameters.
     3This is more a proof of concept than anything else, I'm not sure if it makes sense to leave the burden of handling term caching as well as the `hide_empty` and the `pad_counts` parameters on the callback function.