[wp-trac] [WordPress Trac] #57321: Global Styles: Block spacing and content/wide layout values are not saved if user does not have unfiltered_html capability

WordPress Trac noreply at wordpress.org
Wed Feb 15 03:55:28 UTC 2023


#57321: Global Styles: Block spacing and content/wide layout values are not saved
if user does not have unfiltered_html capability
-------------------------------------------------+-------------------------
 Reporter:  andrewserong                         |       Owner:
                                                 |  peterwilsoncc
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1.2
Component:  Editor                               |     Version:  6.1
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests gutenberg-  |     Focuses:
  merge commit                                   |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55345" 55345]:
 {{{
 #!CommitTicketReference repository="" revision="55345"
 Editor: Prevent KSES stripping global layout style properties.

 Layout style properties are stored using indirect values, rather than
 direct CSS properties.

 Allow users without the `unfiltered_html` capability to modify global
 styles using the indirect block spacing properties `contentSize`,
 `wideSize`, and `blockGap`, using a mapping of the eventual CSS property
 to the indirect property stored in `theme.json`. The mapped CSS property
 is then used for CSS validation.

 Props andrewserong, costdev, hellofromtonya, mamaduka, mmtr86.
 Fixes #57321.
 }}}

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


More information about the wp-trac mailing list