| @@ 549-557 (lines=9) @@ | ||
| 546 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
| 547 | break; |
|
| 548 | case 'post_reference': |
|
| 549 | case 'comment_reference': |
|
| 550 | $docs = array( |
|
| 551 | 'ID' => '(int)', |
|
| 552 | 'type' => '(string)', |
|
| 553 | 'title' => '(string)', |
|
| 554 | 'link' => '(URL)', |
|
| 555 | ); |
|
| 556 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
| 557 | break; |
|
| 558 | case 'geo': |
|
| 559 | $docs = array( |
|
| 560 | 'latitude' => '(float)', |
|
| @@ 558-565 (lines=8) @@ | ||
| 555 | ); |
|
| 556 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
| 557 | break; |
|
| 558 | case 'geo': |
|
| 559 | $docs = array( |
|
| 560 | 'latitude' => '(float)', |
|
| 561 | 'longitude' => '(float)', |
|
| 562 | 'address' => '(string)', |
|
| 563 | ); |
|
| 564 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
| 565 | break; |
|
| 566 | case 'author': |
|
| 567 | $docs = array( |
|
| 568 | 'ID' => '(int)', |
|
| @@ 585-592 (lines=8) @@ | ||
| 582 | ); |
|
| 583 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
| 584 | break; |
|
| 585 | case 'role': |
|
| 586 | $docs = array( |
|
| 587 | 'name' => '(string)', |
|
| 588 | 'display_name' => '(string)', |
|
| 589 | 'capabilities' => '(object:boolean)', |
|
| 590 | ); |
|
| 591 | $return[ $key ] = (object) $this->cast_and_filter( $value, $docs, false, $for_output ); |
|
| 592 | break; |
|
| 593 | case 'attachment': |
|
| 594 | $docs = array( |
|
| 595 | 'ID' => '(int)', |
|