json-endpoints/class.wpcom-json-api-get-post-endpoint.php 1 location
|
@@ 25-27 (lines=3) @@
|
| 22 |
|
return $return; |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
if ( ! $this->current_user_can_access_post_type( $return['type'], $args['context'] ) ) { |
| 26 |
|
return new WP_Error( 'unknown_post', 'Unknown post', 404 ); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */ |
| 30 |
|
do_action( 'wpcom_json_api_objects', 'posts' ); |
json-endpoints/class.wpcom-json-api-get-post-v1-1-endpoint.php 1 location
|
@@ 31-33 (lines=3) @@
|
| 28 |
|
return $return; |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
if ( ! $this->current_user_can_access_post_type( $return['type'], $args['context'] ) ) { |
| 32 |
|
return new WP_Error( 'unknown_post', 'Unknown post', 404 ); |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */ |
| 36 |
|
do_action( 'wpcom_json_api_objects', 'posts' ); |