@@ -131,7 +131,7 @@ |
||
| 131 | 131 | * Check if a given request has access to create a reaction |
| 132 | 132 | * |
| 133 | 133 | * @param WP_REST_Request $request Full details about the request. |
| 134 | - * @return WP_Error|boolean |
|
| 134 | + * @return boolean |
|
| 135 | 135 | */ |
| 136 | 136 | public function create_item_permissions_check( $request ) { |
| 137 | 137 | return true; |
@@ -147,13 +147,13 @@ |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
| 150 | - * Check if we can read a post. |
|
| 151 | - * |
|
| 152 | - * Correctly handles posts with the inherit status. |
|
| 153 | - * |
|
| 154 | - * @param object $post Post object. |
|
| 155 | - * @return boolean Can we read it? |
|
| 156 | - */ |
|
| 150 | + * Check if we can read a post. |
|
| 151 | + * |
|
| 152 | + * Correctly handles posts with the inherit status. |
|
| 153 | + * |
|
| 154 | + * @param object $post Post object. |
|
| 155 | + * @return boolean Can we read it? |
|
| 156 | + */ |
|
| 157 | 157 | public function check_read_post_permission( $post ) { |
| 158 | 158 | if ( ! empty( $post->post_password ) && ! $this->check_update_permission( $post ) ) { |
| 159 | 159 | return false; |