updated plugin Menu Icons version 0.13.23

This commit is contained in:
2026-06-03 21:29:09 +00:00
committed by Gitium
parent af21e84842
commit 44cba94bcb
38 changed files with 1556 additions and 546 deletions

View File

@ -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
@ -149,6 +167,7 @@ abstract class Kucrut_Form_Field {
) {
trigger_error(
sprintf(
// translators: %1$s - the name of the class, %2$s - the type of the field.
esc_html__( '%1$s: Type %2$s is not supported, reverting to text.', 'menu-icons' ),
__CLASS__,
esc_html( $field['type'] )
@ -384,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,