[wp-trac] [WordPress Trac] #64318: ↗ should not be replaced by Twemoji
WordPress Trac
noreply at wordpress.org
Fri Nov 28 12:35:55 UTC 2025
#64318: ↗ should not be replaced by Twemoji
--------------------------+------------------------------
Reporter: Joen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Emoji | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by iflairwebtechnologies):
* keywords: => has-patch
* version: => trunk
Comment:
This patch prevents mathematical arrow symbols such as **↦ ↤** ↥ ↧ from
being incorrectly converted into Twemoji. These characters belong to the
Mathematical Operators block and represent functional or logical notation,
not emoji. Replacing them with Twemoji changes the meaning of the text,
which is especially problematic in technical, mathematical, or academic
content.
The patch introduces:
- **PHP safeguard** in wp_staticize_emoji() to explicitly skip math arrow
characters.
- **JavaScript regex fix** in wp-emoji.js to exclude the Unicode range
**U+21A6–U+21AA**, ensuring consistent behavior across both backend and
frontend.
This restores the expected behavior seen in WordPress 6.8 and earlier,
ensuring that math symbols remain unchanged and are not interpreted as
emoji.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64318#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list