Changeset 16331
- Timestamp:
- 11/12/2010 06:40:51 PM (14 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 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 '': -
trunk/wp-includes/class-wp-xmlrpc-server.php
r16256 r16331 947 947 foreach ( (array) get_categories($args) as $cat ) { 948 948 $category_suggestions[] = array( 949 "category_id" => $cat-> cat_ID,950 "category_name" => $cat-> cat_name949 "category_id" => $cat->term_id, 950 "category_name" => $cat->name 951 951 ); 952 952 } -
trunk/wp-includes/post-template.php
r16315 r16331 353 353 if ( empty($cat->slug ) ) 354 354 continue; 355 $classes[] = 'category-' . sanitize_html_class($cat->slug, $cat-> cat_ID);355 $classes[] = 'category-' . sanitize_html_class($cat->slug, $cat->term_id); 356 356 } 357 357 }
Note: See TracChangeset
for help on using the changeset viewer.