src/Entities/Taxonomy.php
public function postFilterQuery($query)
    {
        // @TODO: Is this still right?
        global $pagenow;

        $vars = &$query->query_vars;

        if ($pagenow == 'edit.php' && isset($vars[$this->name]) && is_numeric($vars[$this->name]) && $vars[$this->name]) {
            $term = get_term_by('id', $vars[$this->name], $this->name);

            $vars[$this->name] = $term->slug;
        }

        return $vars;
    }
public function postFilterQuery($query)
    {
        // @TODO: Is this still right?
        global $pagenow;

        $vars = &$query->query_vars;

        if ($pagenow == 'edit.php' && isset($vars[$this->name]) && is_numeric($vars[$this->name]) && $vars[$this->name]) {
            $term = get_term_by('id', $vars[$this->name], $this->name);

            $vars[$this->name] = $term->slug;
        }

        return $vars;
    }
public function postFilterQuery ( $ query ) { // @TODO: Is this still right? global $ pagenow ; $ vars = & $ query -> query_vars ; if ( $ pagenow == 'edit.php' && isset ( $ vars [ $ this -> name ] ) && is_numeric ( $ vars [ $ this -> name ] ) && $ vars [ $ this -> name ] ) { $ term = get_term_by ( 'id' , $ vars [ $ this -> name ] , $ this -> name ) ; $ vars [ $ this -> name ] = $ term -> slug ; } return $ vars ; }
Applies the selected filter to the query.

@param  object $query
@return array
Applies the selected filter to the query .