Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30982, comment 5


Ignore:
Timestamp:
01/24/2015 03:53:00 PM (9 years ago)
Author:
theMikeD
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30982, comment 5

    initial v1  
    1111So then I poked at query.php and discovered that the filter for `the_posts` is wrapped in a `suppress_filters` check. So by adding `'suppress_filters' => true` to the query being called in the function called by the `the_posts` hook, I get exactly what I want.
    1212
     13Having said all that, if there was a way to make `post__in` work with `pre_get_posts` that would be easier.
     14
    1315I put all this here in case the next guy that comes along find my solution useful.