Changeset 11257
- Timestamp:
- 05/11/2009 04:45:39 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r11255 r11257 2159 2159 global $wp_rewrite; 2160 2160 2161 // use legacy functions for core taxonomies until they are fully plugged in2162 if ( $taxonomy == 'category' )2163 return get_category_link($term);2164 if ( $taxonomy == 'post_tag' )2165 return get_tag_link($term);2166 2167 $termlink = $wp_rewrite->get_extra_permastruct($taxonomy);2168 2169 2161 if ( !is_object($term) ) { 2170 2162 if ( is_int($term) ) { … … 2176 2168 if ( is_wp_error( $term ) ) 2177 2169 return $term; 2170 2171 // use legacy functions for core taxonomies until they are fully plugged in 2172 if ( $taxonomy == 'category' ) 2173 return get_category_link((int) $term->term_id); 2174 if ( $taxonomy == 'post_tag' ) 2175 return get_tag_link((int) $term->term_id); 2176 2177 $termlink = $wp_rewrite->get_extra_permastruct($taxonomy); 2178 2178 2179 2179 $slug = $term->slug;
Note: See TracChangeset
for help on using the changeset viewer.