wp_tag_cloud with smallest = largest not working correctly
|Reported by:||SidBhatt||Owned by:|
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.