The return value of add_filter('rwmb_meta_boxes', [$this, 'register_meta_boxes'])
function is
$fields[] = [
'title' => __('Weitere Einstellungen', NAME_SPACE),
'id' => PREFIX . 'theme-settings',
'panel' => '',
'fields' => [
[
'name' => __('E-Mail', NAME_SPACE),
'id' => PREFIX . 'email',
'type' => 'email',
'label_description' => __('Die E-Mail-Adresse wird im Navigationsmenü und in der Fußzeile angezeigt.', NAME_SPACE),
],
[
'name' => __('Seiten-Hintergrund', NAME_SPACE),
'id' => PREFIX . 'page_background',
'type' => 'image_advanced',
'max_file_uploads' => 1,
'max_status' => false,
'label_description' => __('Hintergrundbild für die Seite.', NAME_SPACE),
],
[
'name' => __('Menü-Hintergrund', NAME_SPACE),
'id' => PREFIX . 'menu_background',
'type' => 'image_advanced',
'max_file_uploads' => 1,
'max_status' => false,
'label_description' => __('Hintergrundbild für das Menü-Overlay.', NAME_SPACE),
],
],
];
when resetting the image in the customizer, the value of the get_theme_mod(PREFIX . 'page_background')
becomes an empty string and the customizer states "something went wrong"
How can I fix this?