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:
parent
c62e75c601
commit
1d976b4781
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue