Revert to the cat=X permalinks from 3.0 and earlier. props dd32. fixes #16644 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@17494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9d648af0de
commit
30bc33ad5a
|
@ -2842,7 +2842,9 @@ function get_term_link( $term, $taxonomy = '') {
|
|||
$t = get_taxonomy($taxonomy);
|
||||
|
||||
if ( empty($termlink) ) {
|
||||
if ( $t->query_var )
|
||||
if ( 'category' == $taxonomy )
|
||||
$termlink = '?cat=' . $term->term_id;
|
||||
elseif ( $t->query_var )
|
||||
$termlink = "?$t->query_var=$slug";
|
||||
else
|
||||
$termlink = "?taxonomy=$taxonomy&term=$slug";
|
||||
|
|
Loading…
Reference in New Issue