Astra_Customizer_Sanitizes::sanitize_border( array|number $val )
Sanitize Border Typography
Description
Parameters
- $val
-
(array|number) (Required) Customizer setting input number.
Return
(array) Return number.
Source
File: inc/customizer/class-astra-customizer-sanitizes.php
public static function sanitize_border( $val ) { $border = array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ); if ( is_array( $val ) ) { $border['top'] = is_numeric( $val['top'] ) ? $val['top'] : ''; $border['right'] = is_numeric( $val['right'] ) ? $val['right'] : ''; $border['bottom'] = is_numeric( $val['bottom'] ) ? $val['bottom'] : ''; $border['left'] = is_numeric( $val['left'] ) ? $val['left'] : ''; } return $border; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.4.0 | Introduced. |