WP_Style_Engine_CSS_Declarations::sanitize_property()protectedWP 6.1.0

Sanitizes property names.

Метод класса: WP_Style_Engine_CSS_Declarations{}

No Hooks.

Return

String. The sanitized property name.

Usage

// protected - for code of main (parent) or child class
$result = $this->sanitize_property( $property );
$property(string) (required)
The CSS property.

Changelog

Since 6.1.0 Introduced.

Код WP_Style_Engine_CSS_Declarations::sanitize_property() WP 6.1.1

protected function sanitize_property( $property ) {
	return sanitize_key( $property );
}