/**
*
* Fix taxonomy = parent/child => taxonomy => child
* @since 0.9.3
*
* @param WP $obj
*/
public function parse_request($obj)
{
$taxes = CPTP_Util::get_taxonomies();
foreach ($taxes as $key => $tax) {
if (isset($obj->query_vars[$tax])) {
if (false !== strpos($obj->query_vars[$tax], '/')) {
$query_vars = explode('/', $obj->query_vars[$tax]);
if (is_array($query_vars)) {
$obj->query_vars[$tax] = array_pop($query_vars);
}
}
}
}
}