Make WordPress Core


Ignore:
Timestamp:
01/25/2024 10:41:38 AM (8 months ago)
Author:
youknowriad
Message:

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.

File:
1 edited

Legend:

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

    r57340 r57352  
    936936                if ( $duotone_support ) {
    937937                    $root_selector    = wp_get_block_css_selector( $block_type );
    938                     $duotone_selector = WP_Theme_JSON::scope_selector( $root_selector, $duotone_support );
     938                    $duotone_selector = static::scope_selector( $root_selector, $duotone_support );
    939939                }
    940940            }
     
    10791079            }
    10801080            if ( false !== $root_style_key ) {
    1081                 $setting_nodes[ $root_style_key ]['selector'] = $options['root_selector'];
     1081                $style_nodes[ $root_style_key ]['selector'] = $options['root_selector'];
    10821082            }
    10831083        }
Note: See TracChangeset for help on using the changeset viewer.