Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class Kirki_Field_Text extends Kirki_Field_Kirki_Generic { |
||
16 | |||
17 | /** |
||
18 | * Sets the $choices |
||
19 | * |
||
20 | * @access protected |
||
21 | */ |
||
22 | protected function set_choices() { |
||
23 | if ( ! is_array( $this->choices ) ) { |
||
|
|||
24 | $this->choices = array(); |
||
25 | } |
||
26 | $this->choices['element'] = 'input'; |
||
27 | $this->choices['type'] = 'text'; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Sets the $sanitize_callback |
||
32 | * |
||
33 | * @access protected |
||
34 | */ |
||
35 | protected function set_sanitize_callback() { |
||
43 | } |
||
44 | } |
||
45 |