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_balanced_characters( string $opening_char, string $closing_char, string $css )
Ensure there are a balanced number of paired characters.
Description Description
This is used to check that the number of opening and closing characters is equal.
For instance, there should be an equal number of braces ("{", "}") in the CSS.
Parameters Parameters
- $opening_char
-
(string) (Required) The opening character.
- $closing_char
-
(string) (Required) The closing character.
- $css
-
(string) (Required) The CSS input string.
Return Return
(bool)
Source Source
File: wp-includes/customize/class-wp-customize-custom-css-setting.php
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |