Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.5 |
Changes | 0 |
1 | <?php |
||
27 | 1 | public function saveResponseMetabox($postId) |
|
28 | { |
||
29 | 1 | if (!wp_verify_nonce(glsr(Helper::class)->filterInput('_nonce-response'), 'response')) { |
|
30 | 1 | return; |
|
31 | } |
||
32 | $response = strval(glsr(Helper::class)->filterInput('response')); |
||
33 | glsr(Database::class)->update($postId, 'response', trim(wp_kses($response, [ |
||
34 | 'a' => ['href' => [], 'title' => []], |
||
35 | 'em' => [], |
||
36 | 'strong' => [], |
||
37 | ]))); |
||
40 |