Make WordPress Core

Opened 3 days ago

Closed 3 days ago

Last modified 3 days ago

#64770 closed defect (bug) (duplicate)

The new block level custom CSS breaks when edited by user without unfiltered_html

Reported by: glendaviesnz's profile glendaviesnz Owned by:
Milestone: 7.0 Priority: high
Severity: critical Version: trunk
Component: Editor Keywords:
Focuses: Cc:

Description

https://github.com/WordPress/gutenberg/pull/73959 introduced block level custom CSS.

Everything works as expected unless a user without unfiltered_html edits a page/post with block level custom CSS that includes nested selectors, eg.

`
color: green;
& p {color: blue}
`
In these cases, entities like & are encoded and the CSS breaks in the editor and the frontend.

This is caused by KSES filtering in core, not in Editor codes, so filing here, not in the GB repo.

Change History (2)

#1 @wildworks
3 days ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #64771.

#2 @wildworks
3 days ago

  • Component changed from Canonical to Editor
  • Milestone set to 7.0
Note: See TracTickets for help on using tickets.