@@ 558-566 (lines=9) @@ | ||
555 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
556 | break; |
|
557 | case 'post_reference': |
|
558 | case 'comment_reference': |
|
559 | $docs = array( |
|
560 | 'ID' => '(int)', |
|
561 | 'type' => '(string)', |
|
562 | 'title' => '(string)', |
|
563 | 'link' => '(URL)', |
|
564 | ); |
|
565 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
566 | break; |
|
567 | case 'geo': |
|
568 | $docs = array( |
|
569 | 'latitude' => '(float)', |
|
@@ 567-574 (lines=8) @@ | ||
564 | ); |
|
565 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
566 | break; |
|
567 | case 'geo': |
|
568 | $docs = array( |
|
569 | 'latitude' => '(float)', |
|
570 | 'longitude' => '(float)', |
|
571 | 'address' => '(string)', |
|
572 | ); |
|
573 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
574 | break; |
|
575 | case 'author': |
|
576 | $docs = array( |
|
577 | 'ID' => '(int)', |
|
@@ 594-601 (lines=8) @@ | ||
591 | ); |
|
592 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
593 | break; |
|
594 | case 'role': |
|
595 | $docs = array( |
|
596 | 'name' => '(string)', |
|
597 | 'display_name' => '(string)', |
|
598 | 'capabilities' => '(object:boolean)', |
|
599 | ); |
|
600 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
601 | break; |
|
602 | case 'attachment': |
|
603 | $docs = array( |
|
604 | 'ID' => '(int)', |