[wp-trac] [WordPress Trac] #53407: Widgets editor: HTML entities appear in Legacy Widget's description

WordPress Trac noreply at wordpress.org
Thu Jun 17 11:51:22 UTC 2021


#53407: Widgets editor: HTML entities appear in Legacy Widget's description
-------------------------------------------------+-------------------------
 Reporter:  ramonopoly                           |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.8
Component:  REST API                             |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:  rest-api
  refresh                                        |
-------------------------------------------------+-------------------------

Comment (by ramonopoly):

 > Is there a reason why single-quotes should not be decoded?

 Ah, this was an oversight. Good spotting, thank you @ocean90

 Just to confirm, we should change it to something like:

 {{{
 $widget['description'] = html_entity_decode( $widget['description'],
 ENT_QUOTES, get_bloginfo( 'charset' ) )
 }}}

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


More information about the wp-trac mailing list