Revert to the cat=X permalinks from 3.0 and earlier. props dd32. fixes #16644 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@17494 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2011-03-02 17:29:11 +00:00
parent c292114f91
commit 1ca947074d
1 changed files with 3 additions and 1 deletions

View File

@ -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";