diff --git a/composer.lock b/composer.lock index 6afd158..d149b6a 100644 --- a/composer.lock +++ b/composer.lock @@ -130,16 +130,16 @@ }, { "name": "codeinwp/themeisle-sdk", - "version": "3.3.48", + "version": "3.3.50", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "0727d2cf2fc9bfb81b42968aeaf2bf4e340f021e" + "reference": "3c1f8dfc2390e667bbc086c5d660900a7985efa6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/0727d2cf2fc9bfb81b42968aeaf2bf4e340f021e", - "reference": "0727d2cf2fc9bfb81b42968aeaf2bf4e340f021e", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/3c1f8dfc2390e667bbc086c5d660900a7985efa6", + "reference": "3c1f8dfc2390e667bbc086c5d660900a7985efa6", "shasum": "" }, "require-dev": { @@ -158,16 +158,16 @@ "homepage": "https://themeisle.com" } ], - "description": "ThemeIsle SDK", + "description": "Themeisle SDK.", "homepage": "https://github.com/Codeinwp/themeisle-sdk", "keywords": [ "wordpress" ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.48" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.50" }, - "time": "2025-08-11T16:47:24+00:00" + "time": "2025-11-25T19:36:35+00:00" }, { "name": "enshrined/svg-sanitize", diff --git a/includes/library/form-fields.php b/includes/library/form-fields.php index 095cae9..fa778af 100644 --- a/includes/library/form-fields.php +++ b/includes/library/form-fields.php @@ -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 * @@ -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 @@ -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,