WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/08/2021 08:07:15 AM (5 months ago)
Author:
youknowriad
Message:

Block Editor: Package updates for 5.8 beta 1.

This includes the following fixes:

Widgets Editor:

Widget blocks in the customizer:

Global Styles:

Template Editor:

Miscellaneous:

Performance:

Props noisysocks, nosolosw, jorgefilipecosta.
See #52991.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json.php

    r51051 r51089  
    656656                foreach ( $preset['classes'] as $class ) {
    657657                    $stylesheet .= self::to_ruleset(
    658                         self::append_to_selector( $selector, '.has-' . $value['slug'] . '-' . $class['class_suffix'] ),
     658                        // We don't want to use kebabCase here,
     659                        // see https://github.com/WordPress/gutenberg/issues/32347
     660                        // However, we need to make sure the generated class
     661                        // doesn't contain spaces.
     662                        self::append_to_selector( $selector, '.has-' . preg_replace( '/\s+/', '-', $value['slug'] ) . '-' . $class['class_suffix'] ),
    659663                        array(
    660664                            array(
Note: See TracChangeset for help on using the changeset viewer.