Changeset 12598 for trunk/wp-includes/category-template.php
- Timestamp:
- 01/04/2010 05:23:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r12319 r12598 21 21 22 22 if ( empty( $catlink ) ) { 23 $file = get_option( 'home' ) . '/'; 24 $catlink = $file . '?cat=' . $category_id; 23 $catlink = home_url('?cat=' . $category_id); 25 24 } else { 26 25 $category = &get_category( $category_id ); … … 35 34 36 35 $catlink = str_replace( '%category%', $category_nicename, $catlink ); 37 $catlink = get_option( 'home' ) . user_trailingslashit( $catlink, 'category');36 $catlink = home_url( user_trailingslashit( $catlink, 'category' ) ); 38 37 } 39 38 return apply_filters( 'category_link', $catlink, $category_id );
Note: See TracChangeset
for help on using the changeset viewer.