Bug report: bad code in lib/query
-
file: lib/tribe-event-query.class.php
Bad code:
// include events in search results if ( $query->is_search && $query->get( 'post_type' ) == '' ) { $query->set( 'post_type', 'any' ); }
the $query->set ‘any’ is not applicable in all instances where post_type == ” especially when other things are adding to it which results in regular ‘post’ post type is not being found, commenting out this code makes them work again for everyone else…
Using this in the register_taxonomy *should* be all you need instead of that.
'query_var' => true
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Bug report: bad code in lib/query’ is closed to new replies.