Skip to content
Permalink
Browse files

Minor updates

  • Loading branch information...
renatonascalves committed Jul 5, 2019
1 parent 0b95a06 commit f574c691bbf0c5691ba3725ed7815c5fcbc78186
Showing with 19 additions and 19 deletions.
  1. +19 −19 includes/bp-messages/classes/class-bp-rest-messages-endpoint.php
@@ -486,10 +486,10 @@ public function update_item( $request ) {
*
* @since 0.1.0
*
* @param boolean $value Whether the user can edit the message meta.
* By default: only the sender and a community moderator can.
* @param object $updated_message The updated message object.
* @param WP_REST_Request $request The request sent to the API.
* @param boolean $value Whether the user can edit the message meta.
* By default: only the sender and a community moderator can.
* @param BP_Messages_Message $updated_message The updated message object.
* @param WP_REST_Request $request The request sent to the API.
*/
$can_edit_item_meta = apply_filters(
'bp_rest_messages_can_edit_item_meta',
@@ -521,9 +521,9 @@ public function update_item( $request ) {
*
* @since 0.1.0
*
* @param object $updated_message The updated message.
* @param WP_REST_Response $response The response data.
* @param WP_REST_Request $request The request sent to the API.
* @param BP_Messages_Message $updated_message The updated message.
* @param WP_REST_Response $response The response data.
* @param WP_REST_Request $request The request sent to the API.
*/
do_action( 'bp_rest_messages_update_item', $updated_message, $response, $request );
@@ -665,7 +665,7 @@ public function update_starred_permissions_check( $request ) {
* @since 0.1.0
*
* @param WP_REST_Request $request Full details about the request.
* @return WP_REST_Response
* @return WP_REST_Response|WP_Error
*/
public function delete_item( $request ) {
$thread = $this->get_thread_object( $request['id'] );
@@ -699,9 +699,9 @@ public function delete_item( $request ) {
*
* @since 0.1.0
*
* @param BP_Messages_Thread $thread Thread object.
* @param WP_REST_Response $retval The response data.
* @param WP_REST_Request $request The request sent to the API.
* @param BP_Messages_Thread $thread Thread object.
* @param WP_REST_Response $response The response data.
* @param WP_REST_Request $request The request sent to the API.
*/
do_action( 'bp_rest_messages_delete_item', $thread, $response, $request );
@@ -735,9 +735,9 @@ public function delete_item_permissions_check( $request ) {
*
* @since 0.1.0
*
* @param object $message The Message object.
* @param WP_REST_Request $request Full details about the request.
* @return array The Message data for the REST response.
* @param BP_Messages_Message $message The Message object.
* @param WP_REST_Request $request Full details about the request.
* @return array The Message data for the REST response.
*/
public function prepare_message_for_response( $message, $request ) {
$data = array(
@@ -773,9 +773,9 @@ public function prepare_message_for_response( $message, $request ) {
*
* @since 0.1.0
*
* @param array $data The message value for the REST response.
* @param object $message The Message object.
* @param WP_REST_Request $request Request used to generate the response.
* @param array $data The message value for the REST response.
* @param BP_Messages_Message $message The Message object.
* @param WP_REST_Request $request Request used to generate the response.
*/
return apply_filters( 'bp_rest_message_prepare_value', $data, $message, $request );
}
@@ -940,7 +940,7 @@ public function prepare_item_for_response( $thread, $request ) {
*
* @param WP_REST_Response $response Response generated by the request.
* @param WP_REST_Request $request Request used to generate the response.
* @param BP_Messages_Thread $thread The thread object.
* @param BP_Messages_Thread $thread The thread object.
*/
return apply_filters( 'bp_rest_messages_prepare_value', $response, $request, $thread );
}
@@ -1003,7 +1003,7 @@ protected function prepare_item_for_database( $request ) {
* @since 0.1.0
*
* @param stdClass $prepared_thread An object prepared for inserting or updating the database.
* @param WP_REST_Request $request Request object.
* @param WP_REST_Request $request Request object.
*/
return apply_filters( 'bp_rest_messages_pre_insert_value', $prepared_thread, $request );
}

0 comments on commit f574c69

Please sign in to comment.
You can’t perform that action at this time.