wordpress-develop icon indicating copy to clipboard operation
wordpress-develop copied to clipboard

Bulk Edit: Show decoded post title in list.

Open dmsnell opened this issue 1 year ago • 3 comments

Trac ticket: Core-61833

Previously, post titles in the bulk edit list were showing HTML character references (entities) in the displayed output when they should have been rendering the decoded values. This is because WordPress was double-encoding the post titles in the hidden "inline data" through a call to esc_textarea().

In this patch, the post title value is first decoded before being passed into esc_textarea() to avoid the double-encoding. This preserves the proper post title render in the Bulk Edit component.

Before Patch After Patch
Screenshot 2024-08-06 at 12 06 26 PM Screenshot 2024-08-06 at 12 35 55 PM

dmsnell avatar Aug 06 '24 19:08 dmsnell