Ticket #1207: 1207b.diff
| File 1207b.diff, 2.4 KB (added by , 19 years ago) |
|---|
-
wp-includes/classes.php
575 575 function start_el($output, $category, $depth, $args) { 576 576 extract($args); 577 577 578 $link = '<a href="' . get_category_link($category->cat_ID) . '" '; 578 $cat_name = wp_specialchars( $category->cat_name, 1 ); 579 $link = '<a href="' . get_category_link( $category->cat_ID ) . '" '; 579 580 if ( $use_desc_for_title == 0 || empty($category->category_description) ) 580 $link .= 'title="' . sprintf(__("View all posts filed under %s"), wp_specialchars($category->cat_name, 1)) . '"';581 $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"'; 581 582 else 582 $link .= 'title="' . wp_specialchars( apply_filters('category_description',$category->category_description,$category),1) . '"';583 $link .= 'title="' . wp_specialchars( apply_filters( 'category_description', $category->category_description, $category ), 1 ) . '"'; 583 584 $link .= '>'; 584 $link .= apply_filters( 'list_cats', $category->cat_name, $category).'</a>';585 $link .= apply_filters( 'list_cats', $category->cat_name, $category ).'</a>'; 585 586 586 587 if ( (! empty($feed_image)) || (! empty($feed)) ) { 587 588 $link .= ' '; … … 589 590 if ( empty($feed_image) ) 590 591 $link .= '('; 591 592 592 $link .= '<a href="' . get_category_rss_link( 0, $category->cat_ID, $category->category_nicename) . '"';593 $link .= '<a href="' . get_category_rss_link( 0, $category->cat_ID, $category->category_nicename ) . '"'; 593 594 594 if ( !empty($feed) ) { 595 if ( emtpy($feed) ) 596 $alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '"'; 597 else { 595 598 $title = ' title="' . $feed . '"'; 596 599 $alt = ' alt="' . $feed . '"'; 597 600 $name = $feed; … … 600 603 601 604 $link .= '>'; 602 605 603 if ( !empty($feed_image) )604 $link .= "<img src='$feed_image' $alt$title" . ' />';606 if ( empty($feed_image) ) 607 $link .= $name; 605 608 else 606 $link .= $name;609 $link .= "<img src='$feed_image'$alt$title" . ' />'; 607 610 $link .= '</a>'; 608 if ( empty($feed_image))611 if ( empty($feed_image) ) 609 612 $link .= ')'; 610 613 } 611 614 612 615 if ( isset($show_count) && $show_count ) 613 $link .= ' (' .intval($category->category_count).')';616 $link .= ' (' . intval($category->category_count) . ')'; 614 617 615 618 if ( isset($show_date) && $show_date ) { 616 619 $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp);