| @@ 50-52 (lines=3) @@ | ||
| 47 | $args['DTT_EVT_end'] = sanitize_text_field($input['endDate']); |
|
| 48 | } |
|
| 49 | ||
| 50 | if (! empty($input['tickets'])) { |
|
| 51 | $args['tickets'] = array_map('sanitize_text_field', (array) $input['tickets']); |
|
| 52 | } |
|
| 53 | ||
| 54 | // Likewise the other fields... |
|
| 55 | ||
| @@ 39-41 (lines=3) @@ | ||
| 36 | $args['TKT_price'] = floatval($input['price']); |
|
| 37 | } |
|
| 38 | ||
| 39 | if (! empty($input['datetimes'])) { |
|
| 40 | $args['datetimes'] = array_map('sanitize_text_field', (array) $input['datetimes']); |
|
| 41 | } |
|
| 42 | ||
| 43 | if (! empty($input['prices'])) { |
|
| 44 | $args['prices'] = array_map('sanitize_text_field', (array) $input['prices']); |
|
| @@ 43-45 (lines=3) @@ | ||
| 40 | $args['datetimes'] = array_map('sanitize_text_field', (array) $input['datetimes']); |
|
| 41 | } |
|
| 42 | ||
| 43 | if (! empty($input['prices'])) { |
|
| 44 | $args['prices'] = array_map('sanitize_text_field', (array) $input['prices']); |
|
| 45 | } |
|
| 46 | ||
| 47 | // Likewise the other fields... |
|
| 48 | ||