[wp-trac] [WordPress Trac] #39955: Media details: HTML character shown as code

WordPress Trac noreply at wordpress.org
Sat May 20 02:23:03 UTC 2017

#39955: Media details: HTML character shown as code
 Reporter:  Irian                     |       Owner:  mikeschroder
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.8
Component:  Media                     |     Version:  4.0
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  ui, administration
Changes (by mikeschroder):

 * status:  assigned => closed
 * resolution:   => fixed


 In [changeset:"40809"]:
 #!CommitTicketReference repository="" revision="40809"
 Media: Decode HTML entities in `author_name` before sending to JS.

 In `wp_prepare_attachment_for_js()`:
 - Normalize behavior when author does not exist by returning '(no author)'
 for `authorName` in these cases.
 - Decode HTML entities in `author_name`.
 - Add tests for both of the above.

 Props arshidkv12, ocean90, sloisel, mikeschroder.
 Fixes #39955.

Ticket URL: <https://core.trac.wordpress.org/ticket/39955#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list