default_topic_count_scale

The timeline below displays how wordpress function default_topic_count_scale has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.8

/**
 * Default topic count scaling for tag links.
 *
 * @since 2.9.0
 *
 * @param int $count Number of posts with that tag.
 * @return int Scaled count.
 */
function default_topic_count_scale($count)
{
    return round(log10($count + 1) * 100);
}

WordPress Version: 4.3

/**
 * Default topic count scaling for tag links
 *
 * @param int $count number of posts with that tag
 * @return int scaled count
 */
function default_topic_count_scale($count)
{
    return round(log10($count + 1) * 100);
}

WordPress Version: 3.7

/**
 * Default topic count scaling for tag links
 *
 * @param integer $count number of posts with that tag
 * @return integer scaled count
 */
function default_topic_count_scale($count)
{
    return round(log10($count + 1) * 100);
}