From 1ca947074dc945590e55f59fc8e61604ea69b4b9 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 2 Mar 2011 17:29:11 +0000 Subject: [PATCH] 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 --- wp-includes/taxonomy.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 89532dcd61..80529d5748 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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";