Bug when using numeric terms for event categories
-
For version 3.7 (running only twentyfourteen and TEC)
My usage has years as an event category(2014, 2013, etc). When listing events for the terms (‘/events/category/2014’) No results are found. But using a non-numeric term works correctly.I isolated the issue to /lib/tribe-event-query-class.php around line # 274 where the code tests for “is_numeric” on the term to set the field to ID or slug. I contend that this should be “is_int” to work correctly (but I am not sure why it is even needed since the tax_query is already setup correctly at this point.)
This ends up re-setting the tax_query where the query must match both the ID and the slug as == the numeric term – a case that is very, very unlikely to happen.
- The topic ‘Bug when using numeric terms for event categories’ is closed to new replies.