Skip to content

'class' doesn't work with 'required' #2609

@ghost

Description

Hi,

I have a section with 'required' attribute:

array(
                'id'       => 'custom-header-colors-start',
                'type'     => 'section',
                'title'    => __( 'Custom Colors', THEME_NAME ),
                'subtitle' => __( 'missing-x', THEME_NAME ),
                'indent'   => true,
                'class' => 'custom-class',
                'required' => array( 'custom-header-colors', "=", 1 ),
            ),

I also added 'class' attribute, but unfortunately the 'title' always visible on the page (so the value of 'custom-header-colors' doesn't matter). Once I remove the class everything is working.

Do you have idea what's wrong?

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