mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
In wptexturize(), don't convert C-style hexadecimals to mathematical ×.
Adds unit tests. Props harrym, kurtpayne, miqrogroove. Fixes #19308. git-svn-id: https://develop.svn.wordpress.org/trunk@28719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -780,10 +780,30 @@ class Tests_Formatting_WPTexturize extends WP_UnitTestCase {
|
||||
"12x34",
|
||||
"12×34",
|
||||
),
|
||||
array(
|
||||
"-123x1=-123",
|
||||
"-123×1=-123",
|
||||
),
|
||||
array(
|
||||
"-123x-1",
|
||||
"-123×-1",
|
||||
),
|
||||
array(
|
||||
"0.675x1=0.675",
|
||||
"0.675×1=0.675",
|
||||
),
|
||||
array(
|
||||
"9 x 9",
|
||||
"9 x 9",
|
||||
),
|
||||
array(
|
||||
"0x70",
|
||||
"0x70",
|
||||
),
|
||||
array(
|
||||
"3x2x1x0",
|
||||
"3x2x1x0",
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user