Alert: 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.

WP_Customize_Custom_CSS_Setting::validate_equal_characters( string $char, string $css )

Ensure there are an even number of paired characters.


Description Description

This is used to check that the number of a specific character is even.

For instance, there should be an even number of double quotes in the CSS.


Parameters Parameters

$char

(string) (Required) A character.

$css

(string) (Required) The CSS input string.


Top ↑

Return Return

(bool) Equality.


Top ↑

Source Source

File: wp-includes/customize/class-wp-customize-custom-css-setting.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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