default_topic_count_scale

函数


default_topic_count_scale ( $count )
参数
  • (int)
    $count
    Number of posts with that tag.
    Required:
返回值
  • (int) Scaled count.
定义位置
  • wp-includes/category-template.php
    , line 795
引入
2.9.0
弃用

Default topic count scaling for tag links.

function default_topic_count_scale( $count ) {
	return round( log10( $count + 1 ) * 100 );
}