Make WordPress Core


Ignore:
Timestamp:
06/10/2014 02:17:24 AM (12 years ago)
Author:
wonderboymusic
Message:

In wptexturize(), don't convert C-style hexadecimals to mathematical ×.

Adds unit tests.

Props harrym, kurtpayne, miqrogroove.
Fixes #19308.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/WPTexturize.php

    r28718 r28719  
    782782            ),
    783783            array(
     784                "-123x1=-123",
     785                "-123×1=-123",
     786            ),
     787            array(
     788                "-123x-1",
     789                "-123×-1",
     790            ),
     791            array(
     792                "0.675x1=0.675",
     793                "0.675×1=0.675",
     794            ),
     795            array(
    784796                "9 x 9",
    785797                "9 x 9",
    786798            ),
     799            array(
     800                "0x70",
     801                "0x70",
     802            ),
     803            array(
     804                "3x2x1x0",
     805                "3x2x1x0",
     806            ),
    787807        );
    788808    }
Note: See TracChangeset for help on using the changeset viewer.