[wp-trac] [WordPress Trac] #64418: Valid CSS is causing failure in the Additional CSS panel

WordPress Trac noreply at wordpress.org
Thu Jan 15 12:08:19 UTC 2026


#64418: Valid CSS is causing failure in the Additional CSS panel
-------------------------------------------------+-------------------------
 Reporter:  drw158                               |       Owner:  jonsurrell
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  7.0
Component:  Customize                            |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:  css
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by jonsurrell):

 In [changeset:"61486" 61486]:
 {{{
 #!CommitTicketReference repository="" revision="61486"
 Customize: Allow arbitrary CSS in global styles custom CSS.

 Relax Global Styles custom CSS filters to allow arbitrary CSS.

 Escape HTML characters `<>&` in Global Styles data to prevent it from
 being mangled by post content filters. The data is JSON encoded and stored
 in `post_content`. Filters operating on `post_content` expect it to
 contain HTML. Some KSES filters would otherwise remove essential CSS
 features like the `<custom-ident>` CSS data type because they appear to be
 HTML tags.

 [61418] changed STYLE tag generation to use the HTML API for improved
 safety.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10641.

 Props jonsurrell, dmsnell, westonruter, ramonopoly, oandregal,
 jorgefilipecosta, sabernhardt, soyebsalar01.
 See #64418.
 }}}

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


More information about the wp-trac mailing list