Skip to content

Options page won't save after setting parent_slug in new_cmb2_box options #1008

@taunoha

Description

@taunoha

I'm getting a white page without any errors when I click "save changes" on options page.
I'm using CMB2 2.2.5.1

$options = new_cmb2_box( array(
      'id'  => '_ld_theme_option_metaboxes',
      'title'        => 'Theme Options',
      'object_types' => array('options-page'),
      'option_key'   => '_ld_theme_options',
      'parent_slug'  => 'options-general.php',
      'icon_url'     => 'dashicons-admin-settings'
));

When I remove the option "parent_slug" it will save without any problems.
Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions