json-endpoints/class.wpcom-json-api-get-post-endpoint.php 1 location
|
@@ 72-74 (lines=3) @@
|
| 69 |
|
return $return; |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
if ( ! $this->current_user_can_access_post_type( $return['type'], $args['context'] ) ) { |
| 73 |
|
return new WP_Error( 'unknown_post', 'Unknown post', 404 ); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */ |
| 77 |
|
do_action( 'wpcom_json_api_objects', 'posts' ); |
json-endpoints/class.wpcom-json-api-get-post-v1-1-endpoint.php 1 location
|
@@ 64-66 (lines=3) @@
|
| 61 |
|
return $return; |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
if ( ! $site->current_user_can_access_post_type( $return['type'], $args['context'] ) ) { |
| 65 |
|
return new WP_Error( 'unknown_post', 'Unknown post', 404 ); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */ |
| 69 |
|
do_action( 'wpcom_json_api_objects', 'posts' ); |