Changeset 51785
- Timestamp:
- 09/09/2021 03:17:20 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/customize/class-wp-customize-custom-css-setting.php
r51784 r51785 146 146 147 147 /** 148 * Validate CSS.148 * Validate a received value for being valid CSS. 149 149 * 150 150 * Checks for imbalanced braces, brackets, and comments. … … 153 153 * @since 4.7.0 154 154 * @since 4.9.0 Checking for balanced characters has been moved client-side via linting in code editor. 155 * 156 * @param string $css The input string. 155 * @since 5.9.0 Renamed `$css` to `$value` for PHP 8 named parameter support. 156 * 157 * @param string $value CSS to validate. 157 158 * @return true|WP_Error True if the input was validated, otherwise WP_Error. 158 159 */ 159 public function validate( $css ) { 160 public function validate( $value ) { 161 // Restores the more descriptive, specific name for use within this method. 162 $css = $value; 163 160 164 $validity = new WP_Error(); 161 165
Note: See TracChangeset
for help on using the changeset viewer.