return $name;
}
+function print_attrs($attrs) {
+ foreach($attrs as $name=>$value) esc("$name='$value' ");
+}
+
function general_bare_field($type, $values, $name, $attrs=[]) {
$value = get_sent_field_value($values, $name);
$id = get_field_id($name);?>
<input type="<?php esc($type);?>" name="<?php esc($name);?>"
id="<?php esc($id);?>" value="<?php esc($value);?>"<?php
- foreach($attrs as $name=>$value) esc("$name=\"$value\" ");?>
+ print_attrs($attrs);?>
/><?php
}