Changeset 7627
- Timestamp:
- 04/08/2008 01:55:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/wp-includes/link-template.php
r7589 r7627 81 81 if ( $parent=$cats[0]->parent ) 82 82 $category = get_category_parents($parent, FALSE, '/', TRUE) . $category; 83 } 84 85 // show default category in permalinks, without86 // having to assign it explicitly87 if ( empty($category) ) {88 $default_category = get_category( get_option( 'default_category' ) );89 $category = is_wp_error( $default_category)? '' : $default_category->slug;83 84 // show default category in permalinks, without 85 // having to assign it explicitly 86 if ( empty($category) ) { 87 $default_category = get_category( get_option( 'default_category' ) ); 88 $category = is_wp_error( $default_category ) ? '' : $default_category->slug; 89 } 90 90 } 91 91
Note: See TracChangeset
for help on using the changeset viewer.