WordPress.org

Make WordPress Core

Ticket #5131: category-template.php.diff

File category-template.php.diff, 842 bytes (added by webrocker, 11 years ago)
  • wp-includes/category-template.php

     
    376376               $tag_id = $tag_ids[$tag];
    377377               $tag_link = clean_url($tag_links[$tag]);
    378378               $tag = str_replace(' ', ' ', wp_specialchars( $tag ));
    379                $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . attribute_escape( sprintf( __('%d topics'), $count ) ) . "'$rel style='font-size: " .
     379               $topictxt = ($count == 1) ? 'topic' : 'topics';
     380               $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . attribute_escape( sprintf( __('%d '.$topictxt), $count ) ) . "'$rel style='font-size: " .
    380381                       ( $smallest + ( ( $count - $min_count ) * $font_step ) )
    381382                       . "$unit;'>$tag</a>";
    382383       }