[wp-trac] [WordPress Trac] #9141: wp_generate_tag_cloud uses wrong
decimal seperator
WordPress Trac
wp-trac at lists.automattic.com
Sun Feb 15 23:46:48 GMT 2009
#9141: wp_generate_tag_cloud uses wrong decimal seperator
--------------------------+-------------------------------------------------
Reporter: Toni-P | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.7.2
Component: Template | Version:
Severity: normal | Keywords: tagcloud font size
--------------------------+-------------------------------------------------
Hi,
I noticed, that wp_generate_Tag_cloud in wp-includes/category-template
uses a comma as decimal seperator for font-size values (0,9em). But CSS
uses a dot (0.9em). Some Browsers don't render the desired font-size.
I fixed it by patching line 695:
{{{
( $smallest + ( ( $count - $min_count ) *
$font_step ) )
}}}
{{{
str_replace(",", ".", ( $smallest + ( ( $count -
$min_count ) * $font_step ) ) )
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9141>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list