[wp-trac] [WordPress Trac] #61833: Post titles in Bulk Edit should show decoded HTML
WordPress Trac
noreply at wordpress.org
Thu Aug 22 04:33:49 UTC 2024
#61833: Post titles in Bulk Edit should show decoded HTML
-------------------------------------+---------------------
Reporter: dmsnell | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.7
Component: Quick/Bulk Edit | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses:
-------------------------------------+---------------------
Description changed by dmsnell:
Old description:
> 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/Ti9hsHgHpN.mp4)]] ||
> [[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)]]
New description:
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#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list