json-endpoints/class.wpcom-json-api-post-endpoint.php 1 location
|
@@ 258-263 (lines=6) @@
|
| 255 |
|
case 'guid' : |
| 256 |
|
$response[$key] = (string) $post->guid; |
| 257 |
|
break; |
| 258 |
|
case 'password' : |
| 259 |
|
$response[$key] = (string) $post->post_password; |
| 260 |
|
if ( 'edit' === $context ) { |
| 261 |
|
$response[$key] = htmlspecialchars_decode( (string) $response[$key], ENT_QUOTES ); |
| 262 |
|
} |
| 263 |
|
break; |
| 264 |
|
case 'parent' : // (object|false) |
| 265 |
|
if ( $post->post_parent ) { |
| 266 |
|
$parent = get_post( $post->post_parent ); |
json-endpoints/class.wpcom-json-api-post-v1-1-endpoint.php 1 location
|
@@ 242-247 (lines=6) @@
|
| 239 |
|
case 'guid' : |
| 240 |
|
$response[$key] = (string) $post->guid; |
| 241 |
|
break; |
| 242 |
|
case 'password' : |
| 243 |
|
$response[$key] = (string) $post->post_password; |
| 244 |
|
if ( 'edit' === $context ) { |
| 245 |
|
$response[$key] = htmlspecialchars_decode( (string) $response[$key], ENT_QUOTES ); |
| 246 |
|
} |
| 247 |
|
break; |
| 248 |
|
case 'parent' : // (object|false) |
| 249 |
|
if ( $post->post_parent ) { |
| 250 |
|
$parent = get_post( $post->post_parent ); |