Changeset 2227 for trunk/wp-includes/template-functions-category.php
- Timestamp:
- 02/06/2005 03:40:08 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-category.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-category.php
r2164 r2227 40 40 $catlink = get_settings('home') . trailingslashit($catlink); 41 41 } 42 $catlink = apply_filters('category_link', $catlink );42 $catlink = apply_filters('category_link', $catlink, $category_id, $category_nicename); 43 43 if ($echo) echo $catlink; 44 44 return $catlink; … … 100 100 } 101 101 } 102 echo apply_filters('the_category', $thelist );102 echo apply_filters('the_category', $thelist, $separator, $parents); 103 103 } 104 104 … … 174 174 if (!$category) $category = $cat; 175 175 $category_description = $cache_categories[$category]->category_description; 176 $category_description = apply_filters('category_description', $category_description );176 $category_description = apply_filters('category_description', $category_description, $category); 177 177 return $category_description; 178 178 } … … 213 213 if ($categories) { 214 214 foreach ($categories as $category) { 215 $cat_name = apply_filters('list_cats', $category->cat_name );215 $cat_name = apply_filters('list_cats', $category->cat_name, $category); 216 216 echo "\t<option value=\"".$category->cat_ID."\""; 217 217 if ($category->cat_ID == $selected) … … 329 329 $link .= 'title="'. sprintf(__("View all posts filed under %s"), wp_specialchars($category->cat_name)) . '"'; 330 330 } else { 331 $link .= 'title="' . wp_specialchars(apply_filters('category_description',$category->category_description )) . '"';331 $link .= 'title="' . wp_specialchars(apply_filters('category_description',$category->category_description,$category)) . '"'; 332 332 } 333 333 $link .= '>'; 334 $link .= apply_filters('list_cats', $category->cat_name ).'</a>';334 $link .= apply_filters('list_cats', $category->cat_name, $category).'</a>'; 335 335 336 336 if ( (! empty($feed_image)) || (! empty($feed)) ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)