@@ 465-472 (lines=8) @@ | ||
462 | } |
|
463 | } |
|
464 | ||
465 | if ( isset( $type['children'] ) ) { |
|
466 | $children = array(); |
|
467 | foreach ( (array) $value as $k => $child ) { |
|
468 | $this->cast_and_filter_item( $children, $type['children'], $k, $child, array(), $for_output ); |
|
469 | } |
|
470 | $return[ $key ] = (array) $children; |
|
471 | break; |
|
472 | } |
|
473 | ||
474 | $return[ $key ] = (array) $value; |
|
475 | break; |
|
@@ 505-512 (lines=8) @@ | ||
502 | } |
|
503 | } |
|
504 | ||
505 | if ( isset( $type['children'] ) ) { |
|
506 | $children = array(); |
|
507 | foreach ( (array) $value as $k => $child ) { |
|
508 | $this->cast_and_filter_item( $children, $type['children'], $k, $child, array(), $for_output ); |
|
509 | } |
|
510 | $return[ $key ] = (object) $children; |
|
511 | break; |
|
512 | } |
|
513 | ||
514 | if ( isset( $type['subtype'] ) ) { |
|
515 | return $this->cast_and_filter_item( $return, $type['subtype'], $key, $value, $types, $for_output ); |