Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
taunoha opened this issue Aug 8, 2017 · 1 comment
Closed

Comments

@taunoha
Copy link

taunoha commented Aug 8, 2017

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?

@jtsternberg
Copy link
Member

Thank you for reporting. Should be fixed in 2.2.5.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants