This is used to convert the internal representation of variables to the CSS representation.
Description
For example, var:preset|color|vivid-green-cyan
becomes var(--wp--preset--color--vivid-green-cyan)
.
Parameters
$value
stringrequired- The variable such as var:
preset|color|vivid
-green-cyan to convert.
Source
}
$setting_nodes = static::get_setting_nodes( $theme_json );
foreach ( $setting_nodes as $metadata ) {
$input = _wp_array_get( $theme_json, $metadata['path'], array() );
if ( empty( $input ) ) {
continue;
}
$output = static::remove_insecure_settings( $input );
if ( ! empty( $output ) ) {
_wp_array_set( $sanitized, $metadata['path'], $output );
}
}
if ( empty( $sanitized['styles'] ) ) {
Changelog
Version | Description |
---|---|
6.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.