Changeset 12598 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 01/04/2010 05:23:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r12597 r12598 2247 2247 2248 2248 if ( empty($termlink) ) { 2249 $file = trailingslashit( get_option('home') );2250 2249 $t = get_taxonomy($taxonomy); 2251 2250 if ( $t->query_var ) 2252 $termlink = " $file?$t->query_var=$slug";2251 $termlink = "?$t->query_var=$slug"; 2253 2252 else 2254 $termlink = "$file?taxonomy=$taxonomy&term=$slug"; 2253 $termlink = "?taxonomy=$taxonomy&term=$slug"; 2254 $termlink = home_url($termlink); 2255 2255 } else { 2256 2256 $termlink = str_replace("%$taxonomy%", $slug, $termlink); 2257 $termlink = get_option('home') . user_trailingslashit($termlink, 'category');2257 $termlink = home_url( user_trailingslashit($termlink, 'category') ); 2258 2258 } 2259 2259 return apply_filters('term_link', $termlink, $term, $taxonomy);
Note: See TracChangeset
for help on using the changeset viewer.