Index: taxonomy.php
===================================================================
--- taxonomy.php	(revision 15355)
+++ taxonomy.php	(working copy)
@@ -2473,16 +2473,17 @@
  *
  * @param object|int|string $term
  * @param string $taxonomy
+ * @param string $field Either 'slug', 'name', or 'id'
  * @return string HTML link to taxonomy term archive
  */
-function get_term_link( $term, $taxonomy ) {
+function get_term_link( $term, $taxonomy, $field = 'slug' ) {
 	global $wp_rewrite;
 
 	if ( !is_object($term) ) {
 		if ( is_int($term) ) {
 			$term = &get_term($term, $taxonomy);
 		} else {
-			$term = &get_term_by('slug', $term, $taxonomy);
+			$term = &get_term_by($field, $term, $taxonomy);
 		}
 	}
 
