[wp-trac] Re: [WordPress Trac] #4552: number argument in
wp_tag_cloud is ignored
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 27 19:03:08 GMT 2007
#4552: number argument in wp_tag_cloud is ignored
-------------------------------------------+--------------------------------
Reporter: pgdx | Owner: pgdx
Type: defect | Status: new
Priority: normal | Milestone: 2.3 (trunk)
Component: Administration | Version: 2.3
Severity: normal | Resolution:
Keywords: tag cloud number wp_tag_cloud |
-------------------------------------------+--------------------------------
Comment (by pgdx):
Should be fixed with something like this
{{{
$numbers = 0;
foreach ( $counts as $tag => $count ) {
if ($numbers++ >= $number)
break;
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/4552#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list