WP_Theme_JSON::remove_indirect_properties( array $input, array $output )

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Removes indirect properties from the given input node and sets in the given output node.


Node to process.
The processed node. Passed by reference.


 * Checks that a declaration provided by the user is safe.
 * @since 5.9.0
 * @param string $property_name  Property name in a CSS declaration, i.e. the `color` in `color: red`.
 * @param string $property_value Value in a CSS declaration, i.e. the `red` in `color: red`.
 * @return bool
protected static function is_safe_css_declaration( $property_name, $property_value ) {
	$style_to_validate = $property_name . ': ' . $property_value;
	$filtered          = esc_html( safecss_filter_attr( $style_to_validate ) );



User Contributed Notes

You must log in before being able to contribute a note or feedback.