@@ -877,6 +877,9 @@ |
||
877 | 877 | parent::tearDown(); |
878 | 878 | } |
879 | 879 | |
880 | + /** |
|
881 | + * @param string $context |
|
882 | + */ |
|
880 | 883 | protected function check_user_data( $user, $data, $context ) { |
881 | 884 | $this->assertEquals( $user->ID, $data['id'] ); |
882 | 885 | $this->assertEquals( $user->display_name, $data['name'] ); |
@@ -877,6 +877,9 @@ |
||
877 | 877 | parent::tearDown(); |
878 | 878 | } |
879 | 879 | |
880 | + /** |
|
881 | + * @param string $context |
|
882 | + */ |
|
880 | 883 | protected function check_user_data( $user, $data, $context ) { |
881 | 884 | $this->assertEquals( $user->ID, $data['id'] ); |
882 | 885 | $this->assertEquals( $user->display_name, $data['name'] ); |
@@ -709,7 +709,8 @@ |
||
709 | 709 | * Check that the taxonomy is valid |
710 | 710 | * |
711 | 711 | * @param string |
712 | - * @return WP_Error|boolean |
|
712 | + * @param string $taxonomy |
|
713 | + * @return boolean |
|
713 | 714 | */ |
714 | 715 | protected function check_is_taxonomy_allowed( $taxonomy ) { |
715 | 716 | $taxonomy_obj = get_taxonomy( $taxonomy ); |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * Prepare a single attachment for create or update |
193 | 193 | * |
194 | 194 | * @param WP_REST_Request $request Request object |
195 | - * @return WP_Error|stdClass $prepared_attachment Post object |
|
195 | + * @return string $prepared_attachment Post object |
|
196 | 196 | */ |
197 | 197 | protected function prepare_item_for_database( $request ) { |
198 | 198 | $prepared_attachment = parent::prepare_item_for_database( $request ); |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | /** |
216 | 216 | * Prepare a single attachment output for response |
217 | 217 | * |
218 | - * @param WP_Post $post Post object |
|
218 | + * @param WP_Post|null $post Post object |
|
219 | 219 | * @param WP_REST_Request $request Request object |
220 | 220 | * @return WP_REST_Response $response |
221 | 221 | */ |