Showing 222 of 244 total issues
Avoid too many return
statements within this method. Open
Open
return rest_ensure_response( $response );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_comment_failed_edit', __( 'Updating comment failed.' ), array( 'status' => 500 ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_upload_sideload_error', $sideloaded['error'], array( 'status' => 500 ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_comment_trash_post', __( 'Sorry, you cannot create a comment on this post.' ), array( 'status' => 403 ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_comment_failed_create', __( 'Creating comment failed.' ), array( 'status' => 500 ) );
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return $response;
Avoid too many return
statements within this method. Open
Open
return current_user_can( 'edit_comment', $comment->comment_ID );
Avoid too many return
statements within this method. Open
Open
return $meta_update;
Avoid too many return
statements within this method. Open
Open
return new WP_Error( $error_code, $error_message, array( 'status' => 409 ) );
Avoid too many return
statements within this method. Open
Open
return new WP_Error( $error_code, $error_message, array( 'status' => 400 ) );
Avoid too many return
statements within this method. Open
Open
return $fields_update;
Avoid too many return
statements within this method. Open
Open
return $fields_update;
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_comment_closed', __( 'Sorry, comments are closed on this post.' ), array( 'status' => 403 ) );
Avoid too many return
statements within this method. Open
Open
return $response;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return $user_id;
Avoid too many return
statements within this method. Open
Open
return $response;
Avoid too many return
statements within this method. Open
Open
return $sideloaded;
Avoid too many return
statements within this method. Open
Open
return new WP_Error( 'rest_comment_draft_post', __( 'Sorry, you cannot create a comment on this post.' ), array( 'status' => 403 ) );