@@ 543-551 (lines=9) @@ | ||
540 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
541 | break; |
|
542 | case 'post_reference': |
|
543 | case 'comment_reference': |
|
544 | $docs = array( |
|
545 | 'ID' => '(int)', |
|
546 | 'type' => '(string)', |
|
547 | 'title' => '(string)', |
|
548 | 'link' => '(URL)', |
|
549 | ); |
|
550 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
551 | break; |
|
552 | case 'geo': |
|
553 | $docs = array( |
|
554 | 'latitude' => '(float)', |
|
@@ 552-559 (lines=8) @@ | ||
549 | ); |
|
550 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
551 | break; |
|
552 | case 'geo': |
|
553 | $docs = array( |
|
554 | 'latitude' => '(float)', |
|
555 | 'longitude' => '(float)', |
|
556 | 'address' => '(string)', |
|
557 | ); |
|
558 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
559 | break; |
|
560 | case 'author': |
|
561 | $docs = array( |
|
562 | 'ID' => '(int)', |
|
@@ 579-586 (lines=8) @@ | ||
576 | ); |
|
577 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
578 | break; |
|
579 | case 'role': |
|
580 | $docs = array( |
|
581 | 'name' => '(string)', |
|
582 | 'display_name' => '(string)', |
|
583 | 'capabilities' => '(object:boolean)', |
|
584 | ); |
|
585 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
586 | break; |
|
587 | case 'attachment': |
|
588 | $docs = array( |
|
589 | 'ID' => '(int)', |