updated plugin Menu Icons version 0.13.23
This commit is contained in:
@ -113,7 +113,7 @@ final class Menu_Icons_Font_Awesome {
|
||||
</div>
|
||||
</div>
|
||||
<a class="check" href="#" title="%s"><div class="media-modal-icon"></div></a>',
|
||||
esc_attr__( 'Deselect', 'icon-picker' )
|
||||
esc_attr__( 'Deselect', 'menu-icons' )
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user