Files
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

13 lines
346 B
PHP

<?php
/**
* Check to see if a value is a valid hex color
* Test $input[$k['id']]
* Set $k['error_msg'] and $is_valid
*/
if ( !empty( $input[ $k[ 'id' ] ] ) ) {
if ( !is_numeric( $input[ $k[ 'id' ] ] ) ) {
$is_valid = false;
$error_msg = $k[ 'label' ] . ': ' . __( 'Please enter a valid number.', 'coming-soon' );
}
}