Skip to content

A small bug on text field #1412

@webbudesign

Description

@webbudesign

Hi,
I think found a small bug on the system. When I use text option like below everything is ok;

array(
'id'        => 'setup42_itempagedetails_config2',
'type'      => 'text',
'title'     => __('Section Titles', 'xx'),
'options' => array(
  'gallery' => __('Item Gallery', 'xx') ,
  'location' => __('Item Location', 'xx') ,
  'description' => __('Item Description', 'xx'),
  'details' => __('Item Details', 'xx'),
  'features' => __('Item Features', 'xx')
 ) ,
 'default' => array(
  'gallery' => 1,
  'location' => 1,
  'description' => 1,
  'details' => 1,
  'features' => 1,
 )
),

But if not write default values receive error like below;
Item Gallery
Warning: Illegal string offset 'gallery' in xx/ReduxCore/inc/fields/text/field_text.php on line 61

Also Placeholder arg. not available for use an array like option arg.

Thanks for your help.
Webbu Design.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions