@@ 451-458 (lines=8) @@ | ||
448 | } |
|
449 | } |
|
450 | ||
451 | if ( isset( $type['children'] ) ) { |
|
452 | $children = array(); |
|
453 | foreach ( (array) $value as $k => $child ) { |
|
454 | $this->cast_and_filter_item( $children, $type['children'], $k, $child, array(), $for_output ); |
|
455 | } |
|
456 | $return[$key] = (array) $children; |
|
457 | break; |
|
458 | } |
|
459 | ||
460 | $return[$key] = (array) $value; |
|
461 | break; |
|
@@ 491-498 (lines=8) @@ | ||
488 | } |
|
489 | } |
|
490 | ||
491 | if ( isset( $type['children'] ) ) { |
|
492 | $children = array(); |
|
493 | foreach ( (array) $value as $k => $child ) { |
|
494 | $this->cast_and_filter_item( $children, $type['children'], $k, $child, array(), $for_output ); |
|
495 | } |
|
496 | $return[$key] = (object) $children; |
|
497 | break; |
|
498 | } |
|
499 | ||
500 | if ( isset( $type['subtype'] ) ) { |
|
501 | return $this->cast_and_filter_item( $return, $type['subtype'], $key, $value, $types, $for_output ); |