Editor: Style Engine - continue `get_classnames` loop after adding the default classname.
The `WP_Style_Engine` class has a method `get_classnames` that builds classnames. It loops over an array to add each classname. This changeset adds a `continue` in the loop after adding the default classname. Syncs changes from https://github.com/WordPress/gutenberg/pull/60153 Props ramonopoly. Fixes #60847. Built from https://develop.svn.wordpress.org/trunk@58311 git-svn-id: http://core.svn.wordpress.org/trunk@57768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e562f6b12d
commit
ecb977b5e2
|
@ -470,6 +470,7 @@ final class WP_Style_Engine {
|
|||
foreach ( $style_definition['classnames'] as $classname => $property_key ) {
|
||||
if ( true === $property_key ) {
|
||||
$classnames[] = $classname;
|
||||
continue;
|
||||
}
|
||||
|
||||
$slug = static::get_slug_from_preset_value( $style_value, $property_key );
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.6-alpha-58310';
|
||||
$wp_version = '6.6-alpha-58311';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue