WordPress.org

Make WordPress Core

Ticket #24317: 24317-filter-by-term.diff

File 24317-filter-by-term.diff, 635 bytes (added by tar.gz, 7 years ago)

A rudimentary proof-of-concept patch

  • wp-admin/includes/class-wp-terms-list-table.php

    diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php
    index 3854a36..fb52e21 100644
    a b class WP_Terms_List_Table extends WP_List_Table { 
    291291                        return $count;
    292292
    293293                if ( $tax->query_var ) {
    294                         $args = array( $tax->query_var => $tag->slug );
    295                 } else {
    296294                        $args = array( 'taxonomy' => $tax->name, 'term' => $tag->slug );
     295                } else {
     296                         $args = array( 'taxonomy' => $tax->name, 'term' => $tag->slug );
    297297                }
    298298
    299299                if ( 'post' != $this->screen->post_type )