WordPress.org

Make WordPress Core

Ticket #16644: 16644.2.diff

File 16644.2.diff, 505 bytes (added by dd32, 7 years ago)

get_term_link modification for ?cat=

  • wp-includes/taxonomy.php

     
    28422842        $t = get_taxonomy($taxonomy);
    28432843
    28442844        if ( empty($termlink) ) {
    2845                 if ( $t->query_var )
     2845                if ( 'category' == $taxonomy )
     2846                        $termlink = '?cat=' . $term->term_id;
     2847                elseif ( $t->query_var )
    28462848                        $termlink = "?$t->query_var=$slug";
    28472849                else
    28482850                        $termlink = "?taxonomy=$taxonomy&term=$slug";