Changeset 7526
- Timestamp:
- 03/26/2008 06:26:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r7520 r7526 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 … … 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 ) { … … 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);
Note: See TracChangeset
for help on using the changeset viewer.