Opened 3 years ago
Closed 3 years ago
#12118 closed defect (bug) (fixed)
wp_texturize converting x to × is too greedy
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Formatting | Version: | 3.0 |
| Severity: | normal | Keywords: | needs-unit-tests |
| Cc: |
Description
Converting x to × in wp_texturize() converts too much. Strings like 4x4 and 4x20=80 should be converted but there are a lot of times when x is in a model number such as rt2x00 where the character should not be converted to a multiplication symbol.
Change History (3)
comment:3
technosailor — 3 years ago
- Resolution set to fixed
- Status changed from new to closed
Since there's a fix in, it seems this ticket never got closed. So closing.
Note: See
TracTickets for help on using
tickets.

A quick method for this, would be to have the regex matching word boundaries: /\b(\d+)x(\d+)\b/ and that seems to work as expected:
Eg: