Ticket #2466: apply list_cats filter consistently consolidated.diff
File apply list_cats filter consistently consolidated.diff, 2.4 KB (added by , 19 years ago) |
---|
-
C:/Xampp/htdocs/development/subversion/wordpress/wp-admin/admin-functions.php
580 580 $result[$cat]['children'] = get_nested_categories($default, $cat); 581 581 $result[$cat]['cat_ID'] = $cat; 582 582 $result[$cat]['checked'] = in_array($cat, $checked_categories); 583 $result[$cat]['cat_name'] = get_the_category_by_ID($cat);583 $result[$cat]['cat_name'] = apply_filters('list_cats', get_the_category_by_ID($cat), $cat); 584 584 } 585 585 } 586 586 -
C:/Xampp/htdocs/development/subversion/wordpress/wp-includes/template-functions-category.php
48 48 if ( '' == $separator ) { 49 49 $thelist .= '<ul class="post-categories">'; 50 50 foreach ( $categories as $category ) { 51 $category->cat_name = apply_filters('list_cats', $category->cat_name, $category); 51 52 $thelist .= "\n\t<li>"; 52 53 switch ( strtolower($parents) ) { 53 54 case 'multiple': … … 70 71 } else { 71 72 $i = 0; 72 73 foreach ( $categories as $category ) { 74 $category->cat_name = apply_filters('list_cats', $category->cat_name, $category); 73 75 if ( 0 < $i ) 74 76 $thelist .= $separator . ' '; 75 77 switch ( strtolower($parents) ) { -
C:/Xampp/htdocs/development/subversion/wordpress/wp-includes/template-functions-general.php
232 232 function single_cat_title($prefix = '', $display = true ) { 233 233 $cat = intval( get_query_var('cat') ); 234 234 if ( !empty($cat) && !(strtoupper($cat) == 'ALL') ) { 235 $my_cat_name = get_the_category_by_ID($cat);235 $my_cat_name = apply_filters('list_cats', get_the_category_by_ID($cat), $cat); 236 236 if ( !empty($my_cat_name) ) { 237 237 if ( $display ) 238 238 echo $prefix.strip_tags($my_cat_name);