Honor largest and smallest options when they are the same. Props scohoust. fixes #7504

git-svn-id: https://develop.svn.wordpress.org/trunk@9952 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-11-28 21:06:57 +00:00
parent f33754255f
commit 6a57390b1c
1 changed files with 1 additions and 1 deletions

View File

@ -675,7 +675,7 @@ function wp_generate_tag_cloud( $tags, $args = '' ) {
if ( $spread <= 0 )
$spread = 1;
$font_spread = $largest - $smallest;
if ( $font_spread <= 0 )
if ( $font_spread < 0 )
$font_spread = 1;
$font_step = $font_spread / $spread;