pantheon-systems / solr-power

A WordPress plugin to connect to Pantheon's Apache Solr search infrastructure, or your own!
https://wordpress.org/plugins/solr-power/
GNU General Public License v2.0
126 stars 61 forks source link

Refactor query filtering to use 'posts_pre_query' filter introduced in WP 4.6 #336

Closed danielbachhuber closed 4 years ago

danielbachhuber commented 7 years ago

Originally https://github.com/pantheon-systems/solr-power/pull/300#issuecomment-314176820

Notably, 'fields'=>'ids' won't work for WP_Query until this is complete because WP_Query runs $this->posts = array_map( 'get_post', $this->posts ); against the post list.