Completed
Branch develop (41d184)
by
unknown
02:35
created
tests/test-rest-users-controller.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -877,6 +877,9 @@
 block discarded – undo
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'] );
Please login to merge, or discard this patch.
tests/test-rest-comments-controller.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -877,6 +877,9 @@
 block discarded – undo
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'] );
Please login to merge, or discard this patch.
lib/endpoints/class-wp-rest-terms-controller.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -709,7 +709,8 @@
 block discarded – undo
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 );
Please login to merge, or discard this patch.
lib/endpoints/class-wp-rest-attachments-controller.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.