[wp-trac] [WordPress Trac] #5645: wp_tag_cloud with smallest = largest not working correctly

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 11 17:27:18 GMT 2008


#5645: wp_tag_cloud with smallest = largest not working correctly
----------------------+-----------------------------------------------------
 Reporter:  SidBhatt  |       Owner:  anonymous       
     Type:  defect    |      Status:  new             
 Priority:  normal    |   Milestone:  2.6             
Component:  General   |     Version:                  
 Severity:  normal    |    Keywords:  has-patch tested
----------------------+-----------------------------------------------------
 One would expect that if you want to create a tag cloud with all links
 having the same constant font size, you would call wp_tag_cloud with the
 same value for both 'smallest' and 'largest'. [e.g
 wp_tag_cloud('smallest=1&largest=1&unit=em')]

 The expected result would be that all links have font size equal to
 smallest (and largest). Instead, wp_tag_cloud still creates links of
 different sizes; in fact the resulting font-size can turn out to be higher
 than the value of 'largest'.

 I'm attaching a simple patch (using rev 6597). There are other tickets
 with related issues of adding more options, styles etc, but their patches
 involve more extensive changes with new parameters etc. My patch only
 addresses the issue of the value of smallest and largest being equal and
 does not overhaul anything. Backwards compatible with existing calls to
 wp_tag_cloud, and tested.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5645>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list