Skip to content

Multiples warnings on repeatable color picker #1285

@rubengc

Description

@rubengc

Hi there

I just found multiples PHP warnings when setting up a colorpicker field as repeatable and passing as default parameter an array

The fields get displayed correctly and initializes correctly with the values you setup, but this configuration causes a set of warnings all of them on class CMB2_Type_Colorpicker

2 errors "preg_match() expects parameter 2 to be string, array given" on CMB2_Type_Colorpicker lines 39 and 44
1 error "trim() expects parameter 1 to be string, array given" on CMB2_Type_Colorpicker line 46

Hope it helps to continue improving CMB2

Best regards

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