Astra_Customizer_Sanitizes::sanitize_spacing( number $val )
Sanitize Spacing
Description
Parameters
- $val
-
(number) (Required) Customizer setting input number.
Return
(number) Return number.
Source
File: inc/customizer/class-astra-customizer-sanitizes.php
public static function sanitize_spacing( $val ) { foreach ( $val as $key => $value ) { $val[ $key ] = ( is_numeric( $val[ $key ] ) && $val[ $key ] >= 0 ) ? $val[ $key ] : ''; } return $val; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.6 | Introduced. |