Make WordPress Core

Ticket #4552: ticket4552

File ticket4552, 650 bytes (added by pgdx, 17 years ago)
Line 
1Index: category-template.php
2===================================================================
3--- category-template.php       (revision 5768)
4+++ category-template.php       (working copy)
5@@ -344,8 +344,11 @@
6        $a = array();
7 
8        $rel = ( is_object($wp_rewrite) && $wp_rewrite->using_permalinks() ) ? ' rel="tag"' : '';
9-
10+       
11+       $numbers = 0;
12        foreach ( $counts as $tag => $count ) {
13+               if ($numbers++ >= $number)
14+                       break;
15                $tag_link = clean_url($tag_links[$tag]);
16                $tag = str_replace(' ', ' ', wp_specialchars( $tag ));
17                $a[] = "<a href='$tag_link' title='" . attribute_escape( sprintf( __('%d topics'), $count ) ) . "'$rel style='font-size: " .