Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions includes/library/form-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ abstract class Kucrut_Form_Field {
'multiple',
);

/**
* URL path to this directory
*
* @since 0.1.0
* @var string
* @access protected
*/
protected static $url_path;

/**
* Holds allowed html tags
*
Expand Down Expand Up @@ -114,6 +123,15 @@ abstract class Kucrut_Form_Field {
*/
protected $attributes = array();

/**
* Holds field arguments
*
* @since 0.1.0
* @var stdClass
* @access protected
*/
protected $args;


/**
* Loader
Expand Down Expand Up @@ -385,6 +403,13 @@ class Kucrut_Form_Field_Textarea extends Kucrut_Form_Field {
);


protected function set_properties() {
if ( ! is_string( $this->field['value'] ) ) {
$this->field['value'] = '';
}
}


public function render() {
printf( // WPCS: XSS ok.
$this->template,
Expand Down
Loading