diff --git a/packages/style-engine/class-wp-style-engine-css-declarations.php b/packages/style-engine/class-wp-style-engine-css-declarations.php index 63e106ea4ee508..b2b56d341ea007 100644 --- a/packages/style-engine/class-wp-style-engine-css-declarations.php +++ b/packages/style-engine/class-wp-style-engine-css-declarations.php @@ -199,19 +199,4 @@ public function get_declarations_string( $should_prettify = false, $indent_count protected function sanitize_property( $property ) { return trim( sanitize_key( $property ) ); } - - /** - * Sanitize values. - * - * @param string $value The CSS value. - * - * @return string The sanitized value. - */ - protected function sanitize_value( $value ) { - // Escape HTML. - $value = esc_html( $value ); - // Fix quotes to account for URLs. - $value = str_replace( array( ''', ''', '"', '"', '"', ''' ), array( "'", "'", '"', '"', '"', "'" ), $value ); - return trim( $value ); - } }