Skip to content

Commit 2f71e07

Browse files
authored
Merge pull request #2 from noahott/master
fix for multivalue fields within repeatable groups
2 parents 99f8cd9 + 7dc22d9 commit 2f71e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Meta_Split.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected function update_sub_meta( $args, $id = null, array $v = null, $sub_key
100100
$sub_key = is_numeric( $sub_key ) ? '' : $sub_key;
101101

102102
foreach ( $v as $key => $entry ) {
103-
if ( is_array( $entry ) ) {
103+
if ( is_array( $entry ) && is_numeric( $key ) ) {
104104
$this->update_sub_meta( $args, $id, $entry, $key );
105105
} else {
106106
$postfix = is_numeric( $key ) ? '' : $sub_key . '_' . $key;

0 commit comments

Comments
 (0)