@@ 1089-1091 (lines=3) @@ | ||
1086 | $data['id'] = $post->ID; |
|
1087 | } |
|
1088 | ||
1089 | if ( ! empty( $schema['properties']['date'] ) ) { |
|
1090 | $data['date'] = $this->prepare_date_response( $post->post_date_gmt, $post->post_date ); |
|
1091 | } |
|
1092 | ||
1093 | if ( ! empty( $schema['properties']['date_gmt'] ) ) { |
|
1094 | $data['date_gmt'] = $this->prepare_date_response( $post->post_date_gmt ); |
|
@@ 1093-1095 (lines=3) @@ | ||
1090 | $data['date'] = $this->prepare_date_response( $post->post_date_gmt, $post->post_date ); |
|
1091 | } |
|
1092 | ||
1093 | if ( ! empty( $schema['properties']['date_gmt'] ) ) { |
|
1094 | $data['date_gmt'] = $this->prepare_date_response( $post->post_date_gmt ); |
|
1095 | } |
|
1096 | ||
1097 | if ( ! empty( $schema['properties']['guid'] ) ) { |
|
1098 | $data['guid'] = array( |
@@ 191-193 (lines=3) @@ | ||
188 | $data['author'] = $post->post_author; |
|
189 | } |
|
190 | ||
191 | if ( ! empty( $schema['properties']['date'] ) ) { |
|
192 | $data['date'] = $this->prepare_date_response( $post->post_date_gmt, $post->post_date ); |
|
193 | } |
|
194 | ||
195 | if ( ! empty( $schema['properties']['date_gmt'] ) ) { |
|
196 | $data['date_gmt'] = $this->prepare_date_response( $post->post_date_gmt ); |