Ticket #6357: 6357-legacy.diff
File 6357-legacy.diff, 1.1 KB (added by , 16 years ago) |
---|
-
wp-includes/taxonomy.php
1940 1940 function get_term_link( $term, $taxonomy ) { 1941 1941 global $wp_rewrite; 1942 1942 1943 // use legacy functions for core taxonomies until they are fully plugged in 1944 if ( $taxonomy == 'category' ) 1945 return get_category_link($term); 1946 if ( $taxonomy == 'post_tag' ) 1947 return get_tag_link($term); 1948 1943 1949 $termlink = $wp_rewrite->get_extra_permastruct($taxonomy); 1944 1950 1945 1951 if ( !is_object($term) ) { … … 1993 1999 if ( !$post ) 1994 2000 return $taxonomies; 1995 2001 1996 $ _template = '%s: %l.';2002 $template = apply_filters('taxonomy_template', '%s: %l.'); 1997 2003 1998 2004 foreach ( get_object_taxonomies($post) as $taxonomy ) { 1999 2005 $t = (array) get_taxonomy($taxonomy); … … 2002 2008 if ( empty($t['args']) ) 2003 2009 $t['args'] = array(); 2004 2010 if ( empty($t['template']) ) 2005 $t['template'] = $ _template;2011 $t['template'] = $template; 2006 2012 2007 2013 $terms = get_object_term_cache($post->ID, $taxonomy); 2008 2014 if ( empty($terms) )