Checks that a declaration provided by the user is safe.
Parameters
$property_name
stringrequired- Property name in a CSS declaration, i.e. the
color
incolor: red
. $property_value
stringrequired- Value in a CSS declaration, i.e. the
red
incolor: red
.
Source
* @param array $data The data to inspect.
* @param bool|array $path Boolean or path to a boolean.
* @param bool $default_value Default value if the referenced path is missing.
* Default false.
* @return bool Value of boolean metadata.
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.