@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * |
| 100 | 100 | * @param object $attachment The attachment object. |
| 101 | 101 | * |
| 102 | - * @return false|int |
|
| 102 | + * @return boolean |
|
| 103 | 103 | */ |
| 104 | 104 | public function is_video( $attachment ) { |
| 105 | 105 | return wp_startswith( $attachment->post_mime_type, 'video/' ); |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * @param mixed $object Response from the attachment endpoint. |
| 143 | 143 | * @param WP_REST_Request $request Request to the attachment endpoint. |
| 144 | 144 | * |
| 145 | - * @return true |
|
| 145 | + * @return boolean |
|
| 146 | 146 | */ |
| 147 | 147 | public function get_permission_check( $object, $request ) { |
| 148 | 148 | return true; |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * @param WP_Post $object The attachment object. |
| 157 | 157 | * @param WP_REST_Request $request Request to the attachment endpoint. |
| 158 | 158 | * |
| 159 | - * @return true |
|
| 159 | + * @return boolean |
|
| 160 | 160 | */ |
| 161 | 161 | public function update_permission_check( $value, $object, $request ) { |
| 162 | 162 | return true; |