Skip to content

Commit bcec44e

Browse files
committed
Ensure value passed to CMB2_Utils::filter_empty is always an array. Fixes CMB2#1026
1 parent 3e0e4f8 commit bcec44e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
1616
* Fix `rest_value_cb` registering of filter. Props [@lipemat](https://github.com/lipemat) ([#1212](https://github.com/CMB2/CMB2/pull/1212)).
1717
* Do not trigger tinyMCE editor save for the activeEditor. Prevents cursor jump in Gutenberg. Fixes [#1202](https://github.com/CMB2/CMB2/issues/1202)
1818
* Fix issue where making a field repeatable would generate a Javascript error because of missing sortable library. Props [@slaFFik](https://github.com/slaFFik) ([#1216](https://github.com/CMB2/CMB2/pull/1216)).
19+
* Ensure value passed to `CMB2_Utils::filter_empty` from `CMB2::save_group_field` is always an array. ([#1026](https://github.com/CMB2/CMB2/issues/1026))
1920

2021
## [2.5.1 - 2018-12-10](https://github.com/CMB2/CMB2/releases/tag/v2.5.1)
2122

includes/CMB2.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,7 @@ public function save_group_field( $field_group ) {
928928

929929
$field = $this->get_new_field( $field_args, $field_group );
930930
$sub_id = $field->id( true );
931+
$saved[ $field_group->index ] = array();
931932

932933
foreach ( (array) $group_vals as $field_group->index => $post_vals ) {
933934

0 commit comments

Comments
 (0)