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