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

WordPress Trac noreply at wordpress.org
Sun Jan 11 03:14:43 UTC 2026


#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 jqz):

 Thank you for finally responding after 4 years.

 Here is some code that exhibits the problem:

 ```php
 \add_action(
   'customize_register',
   function ($wpCustomize) {
     $wpCustomize->add_setting(
       'test54184',
       [
         'type' => 'text',
         'default' => '©',
       ]
     );
     $wpCustomize->add_control(
       'test54184',
       [
         'label' => 'Test for #54184',
         'section' => 'title_tagline',
       ]
     );
   }
 );
 ```

 I know that your bugtracker does not support markdown, but there's nothing
 I can do about that.

 The code example fails to save the changes, I don't know why, but does at
 least demonstrate part 1 of the problem.

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


More information about the wp-trac mailing list