wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_sanitize_block_gap_value › WordPress Function
Since7.1.0
Deprecatedn/a
› wp_sanitize_block_gap_value ( $gap_value )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
| Codex: |
Sanitizes a block gap value before layout style generation.
Source
function wp_sanitize_block_gap_value( $gap_value ) {
if ( is_array( $gap_value ) ) {
foreach ( $gap_value as $key => $value ) {
$gap_value[ $key ] = $value && preg_match( '%[\\\(&=}]|/\*%', $value ) ? null : $value;
}
return $gap_value;
}
return $gap_value && preg_match( '%[\\\(&=}]|/\*%', $gap_value ) ? null : $gap_value;
}