Make WordPress Core

Opened 13 years ago

Closed 12 years ago

#19624 closed defect (bug) (duplicate)

Incorrect font size in tag cloud on decimal comma locales

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: has-patch commit
Focuses: Cc:

Description

On some PHP locales, comma is used as a decimal separator.

This creates incorrect font sizes in tag cloud (e.g. the one on Install Plugins screen). See the screenshot.

Browser fails to handle font-size attributes with commas properly, as CSS specification only supports decimal point as a separator:
http://www.w3.org/TR/CSS21/syndata.html#length-units

To reproduce, add this to wp-config.php:

setlocale(LC_ALL, 'fr_FR');

Related: #18460, #19593

Attachments (2)

19624.tag-cloud.png (118.8 KB) - added by SergeyBiryukov 13 years ago.
19624.patch (692 bytes) - added by SergeyBiryukov 13 years ago.

Download all attachments as: .zip

Change History (5)

#1 @ryan
12 years ago

  • Milestone changed from 3.4 to Future Release

#2 @nacin
12 years ago

  • Keywords commit added
  • Milestone changed from Future Release to 3.4

#3 @nacin
12 years ago

  • Milestone 3.4 deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.