- Timestamp:
- 04/25/2019 02:24:26 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/activity/ajax.php
r12365 r12371 358 358 359 359 if ( empty( $_POST['form_id'] ) || empty( $_POST['comment_id'] ) || ! is_numeric( $_POST['form_id'] ) || ! is_numeric( $_POST['comment_id'] ) ) { 360 wp_send_json_error( $response ); 361 } 362 363 $activity_id = (int) $_POST['form_id']; 364 $activity_item = new BP_Activity_Activity( $activity_id ); 365 if ( ! bp_activity_user_can_read( $activity_item ) ) { 360 366 wp_send_json_error( $response ); 361 367 }
Note: See TracChangeset
for help on using the changeset viewer.