Changeset 16331 for trunk/wp-includes/category-template.php
- Timestamp:
- 11/12/2010 06:40:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r16317 r16331 41 41 $name = $parent->slug; 42 42 else 43 $name = $parent-> cat_name;43 $name = $parent->name; 44 44 45 45 if ( $parent->parent && ( $parent->parent != $parent->term_id ) && !in_array( $parent->parent, $visited ) ) { … … 49 49 50 50 if ( $link ) 51 $chain .= '<a href="' . get_category_link( $parent->term_id ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $parent-> cat_name ) ) . '">'.$name.'</a>' . $separator;51 $chain .= '<a href="' . get_category_link( $parent->term_id ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $parent->name ) ) . '">'.$name.'</a>' . $separator; 52 52 else 53 53 $chain .= $name.$separator; … … 184 184 case '': 185 185 default: 186 $thelist .= '<a href="' . get_category_link( $category->term_id ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '" ' . $rel . '>' . $category-> cat_name.'</a></li>';186 $thelist .= '<a href="' . get_category_link( $category->term_id ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '" ' . $rel . '>' . $category->name.'</a></li>'; 187 187 } 188 188 } … … 197 197 if ( $category->parent ) 198 198 $thelist .= get_category_parents( $category->parent, true, $separator ); 199 $thelist .= '<a href="' . get_category_link( $category->term_id ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '" ' . $rel . '>' . $category-> cat_name.'</a>';199 $thelist .= '<a href="' . get_category_link( $category->term_id ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '" ' . $rel . '>' . $category->name.'</a>'; 200 200 break; 201 201 case 'single': … … 203 203 if ( $category->parent ) 204 204 $thelist .= get_category_parents( $category->parent, false, $separator ); 205 $thelist .= "$category-> cat_name</a>";205 $thelist .= "$category->name</a>"; 206 206 break; 207 207 case '':
Note: See TracChangeset
for help on using the changeset viewer.