Changeset 4790
- Timestamp:
- 01/23/2007 08:21:28 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/category-template.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r4774 r4790 86 86 87 87 function get_the_category_list($separator = '', $parents='') { 88 global $wp_rewrite; 88 89 $categories = get_the_category(); 89 90 if (empty($categories)) 90 91 return apply_filters('the_category', __('Uncategorized'), $separator, $parents); 92 93 $rel = ( is_object($wp_rewrite) && $wp_rewrite->using_permalinks() ) ? 'rel="category tag"' : 'rel="category"'; 91 94 92 95 $thelist = ''; … … 99 102 if ($category->category_parent) 100 103 $thelist .= get_category_parents($category->category_parent, TRUE); 101 $thelist .= '<a href="' . get_category_link($category->cat_ID) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" rel="category tag">'.$category->cat_name.'</a></li>';104 $thelist .= '<a href="' . get_category_link($category->cat_ID) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" ' . $rel . '">' . $category->cat_name.'</a></li>'; 102 105 break; 103 106 case 'single': 104 $thelist .= '<a href="' . get_category_link($category->cat_ID) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . ' rel="category tag">';107 $thelist .= '<a href="' . get_category_link($category->cat_ID) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" ' . $rel . '">'; 105 108 if ($category->category_parent) 106 109 $thelist .= get_category_parents($category->category_parent, FALSE); … … 109 112 case '': 110 113 default: 111 $thelist .= '<a href="' . get_category_link($category->cat_ID) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" rel="category tag">'.$category->cat_name.'</a></li>';114 $thelist .= '<a href="' . get_category_link($category->cat_ID) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" ' . $rel . '">' . $category->cat_name.'</a></li>'; 112 115 } 113 116 } … … 122 125 if ( $category->category_parent ) 123 126 $thelist .= get_category_parents($category->category_parent, TRUE); 124 $thelist .= '<a href="' . get_category_link($category->cat_ID) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" rel="category tag">'.$category->cat_name.'</a>';127 $thelist .= '<a href="' . get_category_link($category->cat_ID) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" ' . $rel . '">' . $category->cat_name.'</a>'; 125 128 break; 126 129 case 'single': 127 $thelist .= '<a href="' . get_category_link($category->cat_ID) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" rel="category tag">';130 $thelist .= '<a href="' . get_category_link($category->cat_ID) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" ' . $rel . '">'; 128 131 if ( $category->category_parent ) 129 132 $thelist .= get_category_parents($category->category_parent, FALSE); … … 132 135 case '': 133 136 default: 134 $thelist .= '<a href="' . get_category_link($category->cat_ID) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" rel="category tag">'.$category->cat_name.'</a>';137 $thelist .= '<a href="' . get_category_link($category->cat_ID) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" ' . $rel . '">' . $category->cat_name.'</a>'; 135 138 } 136 139 ++$i;
Note: See TracChangeset
for help on using the changeset viewer.