[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 Jul 24 16:57:01 UTC 2017
#41208: Dashboard News & Events widget does not properly handle entities (e.g.
en/em dash)
----------------------------+-----------------------------
Reporter: nickciske | Owner: iandunn
Type: defect (bug) | Status: accepted
Priority: low | Milestone: Future Release
Component: Administration | Version: 4.8
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
----------------------------+-----------------------------
Changes (by iandunn):
* keywords: => needs-patch
* owner: => iandunn
* priority: normal => low
* status: new => accepted
* milestone: Awaiting Review => Future Release
Comment:
I'm seeing this too. I haven't had time to really dig into it, but the
`–` entity is returned by the w.org API, which seems appropriate at
first glance.
My first guess would be that `{{` is preventing the entity from being
rendered. Running the data through `htmlspecialchars_decode()` before it
gets returned from `get_events()` might be a good fix. I think that'd be
safe, since it'd still be passed through `{{`, but we'd need to verify
that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41208#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list