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

WordPress Trac noreply at wordpress.org
Sun May 14 09:23:34 UTC 2017


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

 * keywords:  good-first-bug has-patch => good-first-bug needs-patch


Comment:

 Let's not open the possibility to parse HTML there, instead we should make
 use of `html_entity_decode()`. See [32822] for an example.

 Looks like this needs to happen in `wp_prepare_attachment_for_js()`.

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


More information about the wp-trac mailing list