[wp-trac] [WordPress Trac] #41208: Dashboard News & Events widget does not properly handle entities (e.g. en/em dash)
WordPress Trac
noreply at wordpress.org
Mon Jan 10 19:13:16 UTC 2022
#41208: Dashboard News & Events widget does not properly handle entities (e.g.
en/em dash)
----------------------------+-----------------------------
Reporter: nickciske | Owner: audrasjb
Type: defect (bug) | Status: assigned
Priority: low | Milestone: 6.0
Component: Administration | Version: 4.8
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, javascript
----------------------------+-----------------------------
Comment (by sabernhardt):
For testing, I wanted to keep both the original code and the patch changes
intact, so I edited the `$events` array immediately at the beginning of
the `trim_events()` function. (The PR diff applied changes around this.)
{{{
$events[0]['title'] = '“test – testing” …';
$events[1]['title'] = 'Users — TBD';
$events[1]['type'] = 'wordcamp';
$events[2]['title'] = '« L’Événement » à
Nîmes';
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41208#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list