Skip to content

Commit 67a857b

Browse files
committed
fix: ensure default_topic_count_scale() returns int
1 parent b056dc2 commit 67a857b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/category-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ function wp_tag_cloud( $args = '' ) {
797797
* @return int Scaled count.
798798
*/
799799
function default_topic_count_scale( $count ) {
800-
return round( log10( $count + 1 ) * 100 );
800+
return (int) round( log10( $count + 1 ) * 100 );
801801
}
802802

803803
/**

0 commit comments

Comments
 (0)