core/Widget/Widget.php 1 location
|
@@ 294-298 (lines=5) @@
|
291 |
|
} else { |
292 |
|
$instance[ $name ][ $field_name['index'] ][ $field_name['key'] ][ $subfield_name['index'] ][ $subfield_name['key'] ] = $value; |
293 |
|
} |
294 |
|
} else if ( ! empty( $field_name['sub'] ) ) { |
295 |
|
$instance[ $name ][ $field_name['index'] ][ $field_name['key'] ][ $field_name['sub'] ] = $value; |
296 |
|
} else { |
297 |
|
$instance[ $name ][ $field_name['index'] ][ $field_name['key'] ] = $value; |
298 |
|
} |
299 |
|
|
300 |
|
unset( $instance[ $key ] ); |
301 |
|
} |
core/Helper/Helper.php 1 location
|
@@ 395-399 (lines=5) @@
|
392 |
|
$input_groups[ $field_name['index'] ]['_type'] = $field_name['group']; |
393 |
|
if ( ! empty( $field_name['trailing'] ) ) { |
394 |
|
$input_groups = self::expand_nested_field( $input_groups, $row, $field_name ); |
395 |
|
} else if ( ! empty( $field_name['sub'] ) ) { |
396 |
|
$input_groups[ $field_name['index'] ][ $field_name['key'] ][ $field_name['sub'] ] = $row['field_value']; |
397 |
|
} else { |
398 |
|
$input_groups[ $field_name['index'] ][ $field_name['key'] ] = $row['field_value']; |
399 |
|
} |
400 |
|
} |
401 |
|
|
402 |
|
// create groups list with loaded fields |
core/Field/Complex_Field.php 1 location
|
@@ 335-339 (lines=5) @@
|
332 |
|
|
333 |
|
if ( ! empty( $field_name['trailing'] ) ) { |
334 |
|
$input_groups[ $field_name['index'] ][ $field_name['key'] . '_' . $field_name['sub'] . '-' . $field_name['trailing'] ] = $row['field_value']; |
335 |
|
} else if ( ! empty( $field_name['sub'] ) ) { |
336 |
|
$input_groups[ $field_name['index'] ][ $field_name['key'] ][ $field_name['sub'] ] = $row['field_value']; |
337 |
|
} else { |
338 |
|
$input_groups[ $field_name['index'] ][ $field_name['key'] ] = $row['field_value']; |
339 |
|
} |
340 |
|
} |
341 |
|
|
342 |
|
// create groups list with loaded fields |