Make WordPress Core

Ticket #13949: 13949.diff

File 13949.diff, 1.6 KB (added by wonderboymusic, 12 years ago)
  • wp-includes/category-template.php

    diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php
    index 96a61cf..0673218 100644
    a b function wp_list_categories( $args = '' ) { 
    420420                'feed_image' => '', 'exclude' => '',
    421421                'exclude_tree' => '', 'current_category' => 0,
    422422                'hierarchical' => true, 'title_li' => __( 'Categories' ),
     423                'title_format' => __( 'View all posts filed under %s' ),
     424                'feed_title_format' => __( 'Feed for all posts filed under %s' ),
    423425                'echo' => 1, 'depth' => 0,
    424426                'taxonomy' => 'category'
    425427        );
    class Walker_Category extends Walker { 
    827829                $cat_name = apply_filters( 'list_cats', $cat_name, $category );
    828830                $link = '<a href="' . esc_url( get_term_link($category) ) . '" ';
    829831                if ( $use_desc_for_title == 0 || empty($category->description) )
    830                         $link .= 'title="' . esc_attr( sprintf(__( 'View all posts filed under %s' ), $cat_name) ) . '"';
     832                        $link .= 'title="' . esc_attr( sprintf( __( $title_format ), $cat_name ) ) . '"';
    831833                else
    832834                        $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"';
    833835                $link .= '>';
    class Walker_Category extends Walker { 
    842844                        $link .= '<a href="' . esc_url( get_term_feed_link( $category->term_id, $category->taxonomy, $feed_type ) ) . '"';
    843845
    844846                        if ( empty($feed) ) {
    845                                 $alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '"';
     847                                $alt = ' alt="' . sprintf(__( $feed_title_format ), $cat_name ) . '"';
    846848                        } else {
    847849                                $title = ' title="' . $feed . '"';
    848850                                $alt = ' alt="' . $feed . '"';