WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#19624 closed defect (bug) (duplicate)

Incorrect font size in tag cloud on decimal comma locales

Reported by: 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 2 years ago.
19624.patch (692 bytes) - added by SergeyBiryukov 2 years ago.

Download all attachments as: .zip

Change History (5)

SergeyBiryukov2 years ago

comment:1 ryan2 years ago

  • Milestone changed from 3.4 to Future Release

comment:2 nacin2 years ago

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

comment:3 nacin2 years ago

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