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

git-svn-id: http://svn.automattic.com/wordpress/trunk@9952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-28 21:06:57 +00:00
parent c62e75c601
commit 1d976b4781
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;