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.

Parameters

$inputarrayrequired
Node to process.
$outputarrayrequired
The processed node. Passed by reference.

Source


	$output = static::remove_insecure_settings( $input );
	if ( ! empty( $output ) ) {
		_wp_array_set( $sanitized, $metadata['path'], $output );
	}
}

if ( empty( $sanitized['styles'] ) ) {
	unset( $theme_json['styles'] );
} else {
	$theme_json['styles'] = $sanitized['styles'];
}

Changelog

VersionDescription
6.2.0Introduced.

User Contributed Notes

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