@@ 410-417 (lines=8) @@ | ||
407 | } |
|
408 | } |
|
409 | ||
410 | if ( isset( $type['children'] ) ) { |
|
411 | $children = array(); |
|
412 | foreach ( (array) $value as $k => $child ) { |
|
413 | $this->cast_and_filter_item( $children, $type['children'], $k, $child, array(), $for_output ); |
|
414 | } |
|
415 | $return[$key] = (array) $children; |
|
416 | break; |
|
417 | } |
|
418 | ||
419 | $return[$key] = (array) $value; |
|
420 | break; |
|
@@ 450-457 (lines=8) @@ | ||
447 | } |
|
448 | } |
|
449 | ||
450 | if ( isset( $type['children'] ) ) { |
|
451 | $children = array(); |
|
452 | foreach ( (array) $value as $k => $child ) { |
|
453 | $this->cast_and_filter_item( $children, $type['children'], $k, $child, array(), $for_output ); |
|
454 | } |
|
455 | $return[$key] = (object) $children; |
|
456 | break; |
|
457 | } |
|
458 | ||
459 | if ( isset( $type['subtype'] ) ) { |
|
460 | return $this->cast_and_filter_item( $return, $type['subtype'], $key, $value, $types, $for_output ); |