Make WordPress Core

Ticket #3926: classes-php.diff

File classes-php.diff, 1.0 KB (added by jhodgdon, 18 years ago)

Patch to add filtering to title attributes in categories list

  • E:/EclipseWork/WordPressDev/wp-includes/classes.php

     
    580580                extract($args);
    581581
    582582                $cat_name = attribute_escape( $category->cat_name);
     583                $cat_name = apply_filters( 'list_cats', $cat_name, $category );
    583584                $link = '<a href="' . get_category_link( $category->cat_ID ) . '" ';
    584585                if ( $use_desc_for_title == 0 || empty($category->category_description) )
    585586                        $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
    586587                else
    587588                        $link .= 'title="' . attribute_escape( apply_filters( 'category_description', $category->category_description, $category )) . '"';
    588589                $link .= '>';
    589                 $link .= apply_filters( 'list_cats', $category->cat_name, $category ).'</a>';
     590                $link .= $cat_name . '</a>';
    590591
    591592                if ( (! empty($feed_image)) || (! empty($feed)) ) {
    592593                        $link .= ' ';