Index: src/wp-includes/taxonomy.php
===================================================================
--- src/wp-includes/taxonomy.php	(revision 31834)
+++ src/wp-includes/taxonomy.php	(working copy)
@@ -4322,9 +4322,10 @@
  *
  * @param object|int|string $term     The term object, ID, or slug whose link will be retrieved.
  * @param string            $taxonomy Optional. Taxonomy. Default empty.
+ * @param string $field Either 'slug', 'name', or 'id'
  * @return string|WP_Error HTML link to taxonomy term archive on success, WP_Error if term does not exist.
  */
-function get_term_link( $term, $taxonomy = '') {
+function get_term_link( $term, $taxonomy = '', $field = 'slug' ) {
 	global $wp_rewrite;
 
 	if ( !is_object($term) ) {
@@ -4331,7 +4332,7 @@
 		if ( is_int($term) ) {
 			$term = get_term($term, $taxonomy);
 		} else {
-			$term = get_term_by('slug', $term, $taxonomy);
+			$term = get_term_by( $field, $term, $taxonomy );
 		}
 	}
 
