mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-17 08:05:21 +01:00
Editor: Fix Theme.json application of custom root selector for styles.
Theme.json stylesheets attempting to use a custom root selector are generated with in correct styles. Props aaronrobertshaw, get_dave, mukesh27. Fixes #60343. Built from https://develop.svn.wordpress.org/trunk@57352 git-svn-id: http://core.svn.wordpress.org/trunk@56858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eafafcf518
commit
02cdd7f047
@ -935,7 +935,7 @@ class WP_Theme_JSON {
|
||||
|
||||
if ( $duotone_support ) {
|
||||
$root_selector = wp_get_block_css_selector( $block_type );
|
||||
$duotone_selector = WP_Theme_JSON::scope_selector( $root_selector, $duotone_support );
|
||||
$duotone_selector = static::scope_selector( $root_selector, $duotone_support );
|
||||
}
|
||||
}
|
||||
|
||||
@ -1078,7 +1078,7 @@ class WP_Theme_JSON {
|
||||
$setting_nodes[ $root_settings_key ]['selector'] = $options['root_selector'];
|
||||
}
|
||||
if ( false !== $root_style_key ) {
|
||||
$setting_nodes[ $root_style_key ]['selector'] = $options['root_selector'];
|
||||
$style_nodes[ $root_style_key ]['selector'] = $options['root_selector'];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.5-alpha-57351';
|
||||
$wp_version = '6.5-alpha-57352';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user