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
* Check the value isn't an array before adding so as to not
* double up shorthand and longhand styles.
*/
$value = _wp_array_get( $input, $path, array() );
if ( ! is_array( $value ) ) {
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.