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:
parent
f33754255f
commit
6a57390b1c
|
@ -675,7 +675,7 @@ function wp_generate_tag_cloud( $tags, $args = '' ) {
|
||||||
if ( $spread <= 0 )
|
if ( $spread <= 0 )
|
||||||
$spread = 1;
|
$spread = 1;
|
||||||
$font_spread = $largest - $smallest;
|
$font_spread = $largest - $smallest;
|
||||||
if ( $font_spread <= 0 )
|
if ( $font_spread < 0 )
|
||||||
$font_spread = 1;
|
$font_spread = 1;
|
||||||
$font_step = $font_spread / $spread;
|
$font_step = $font_spread / $spread;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue