@@ 57-59 (lines=3) @@ | ||
54 | $args['DTT_EVT_end'] = new DateTime(sanitize_text_field($input['endDate'])); |
|
55 | } |
|
56 | ||
57 | if (! empty($input['tickets'])) { |
|
58 | $args['tickets'] = array_map('sanitize_text_field', (array) $input['tickets']); |
|
59 | } |
|
60 | ||
61 | // Likewise the other fields... |
|
62 |
@@ 62-64 (lines=3) @@ | ||
59 | $args['TKT_end_date'] = new DateTime(sanitize_text_field($input['endDate'])); |
|
60 | } |
|
61 | ||
62 | if (! empty($input['datetimes'])) { |
|
63 | $args['datetimes'] = array_map('sanitize_text_field', (array) $input['datetimes']); |
|
64 | } |
|
65 | ||
66 | if (! empty($input['prices'])) { |
|
67 | $args['prices'] = array_map('sanitize_text_field', (array) $input['prices']); |
|
@@ 66-68 (lines=3) @@ | ||
63 | $args['datetimes'] = array_map('sanitize_text_field', (array) $input['datetimes']); |
|
64 | } |
|
65 | ||
66 | if (! empty($input['prices'])) { |
|
67 | $args['prices'] = array_map('sanitize_text_field', (array) $input['prices']); |
|
68 | } |
|
69 | ||
70 | // Likewise the other fields... |
|
71 |