[wp-trac] [WordPress Trac] #61833: Post titles in Bulk Edit should show decoded HTML
WordPress Trac
noreply at wordpress.org
Tue Aug 6 19:48:58 UTC 2024
#61833: Post titles in Bulk Edit should show decoded HTML
-----------------------------+-----------------------------
Reporter: dmsnell | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Quick/Bulk Edit | Version:
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
It seems that when a post title contains HTML character references
(entities) that the list of posts in the //Bulk Edit// screen shows the
raw HTML markup in its non-decoded form. Instead, it ought to show the
decoded form.
|| [[Image(https://cldup.com/RNH1LGEjg7.png)]] ||
[[Image(https://cldup.com/cTnfJAgODG.png)]] ||
The JavaScript is escaping the raw HTML, preserving the character
references as syntax instead of decoding them as text.
{{{
[Log] {theTitle: "… is Λ"} (inline-edit-post.js,
line 210)
[Log] {theTitle: "x < 2 & y > 3…"} (inline-edit-post.js,
line 210)
}}}
WordPress is double-encoding the post titles when sending them to the
admin page, causing the display error. The raw value in the database is
proper, e.g. `… is Λ`.
[[Image(https://cldup.com/HJEjFMJ5uA.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61833>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list