Opened 14 years ago
Closed 14 years ago
#19593 closed defect (bug) (fixed)
Incorrect plugin ratings on decimal comma locales
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.4 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Administration | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
On some PHP locales, comma is used as a decimal separator.
This creates visual problems with plugin ratings and tag cloud 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');
unserialize() in plugins_api() would then return values with commas, even if WP.org API returns them with points: http://core.trac.wordpress.org/browser/tags/3.3/wp-admin/includes/plugin-install.php#L48
Related: #18460
Attachments (3)
Change History (10)
#2
in reply to:
↑ 1
@
14 years ago
Replying to nacin:
Perhaps the API call could return a string instead?
I guess that would fix the ratings, but not the tag cloud (see the second screenshot).
Perhaps the API call could return a string instead?