diff options
Diffstat (limited to 'plugins/jetpack/json-endpoints/class.wpcom-json-api-post-endpoint.php')
-rw-r--r-- | plugins/jetpack/json-endpoints/class.wpcom-json-api-post-endpoint.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/jetpack/json-endpoints/class.wpcom-json-api-post-endpoint.php b/plugins/jetpack/json-endpoints/class.wpcom-json-api-post-endpoint.php index 713fa68a..917c7d7a 100644 --- a/plugins/jetpack/json-endpoints/class.wpcom-json-api-post-endpoint.php +++ b/plugins/jetpack/json-endpoints/class.wpcom-json-api-post-endpoint.php @@ -613,9 +613,9 @@ abstract class WPCOM_JSON_API_Post_Endpoint extends WPCOM_JSON_API_Endpoint { */ function get_current_user_capabilities( $post ) { return array( - 'publish_post' => current_user_can( 'publish_post', $post ), - 'delete_post' => current_user_can( 'delete_post', $post ), - 'edit_post' => current_user_can( 'edit_post', $post ) + 'publish_post' => current_user_can( 'publish_post', $post->ID ), + 'delete_post' => current_user_can( 'delete_post', $post->ID ), + 'edit_post' => current_user_can( 'edit_post', $post->ID ) ); } |