[wp-trac] [WordPress Trac] #54184: HTML entities get decoded in Customizer text fields

WordPress Trac noreply at wordpress.org
Mon Dec 29 16:13:25 UTC 2025


#54184: HTML entities get decoded in Customizer text fields
-------------------------+-------------------------------------------------
 Reporter:  jqz          |       Owner:  (none)
     Type:  defect       |      Status:  new
  (bug)                  |
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:  5.8.1
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  ui, administration, coding-
                         |  standards
-------------------------+-------------------------------------------------

Comment (by jonsurrell):

 Thanks for the report! Does this happen with other HTML character
 references?

 > Use `WP_Customize_Manager::add_setting()` and
 `WP_Customize_Manager::add_control()` to create a text setting/control
 with the default value `©`…

 It would be helpful if you share a full working code example to test this
 out.

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


More information about the wp-trac mailing list