IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
1103 | 1103 | // Check the nonce. |
1104 | 1104 | check_admin_referer( 'bp_activity_delete_link' ); |
1105 | 1105 | |
1106 | | if ( ! is_user_logged_in() ) |
| 1106 | if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) ) { |
1107 | 1107 | exit( '-1' ); |
| 1108 | } |
| 1109 | |
| 1110 | if ( ! is_user_logged_in() ) { |
| 1111 | exit( '-1' ); |
| 1112 | } |
1108 | 1113 | |
1109 | 1114 | $comment = new BP_Activity_Activity( $_POST['id'] ); |
1110 | 1115 | |
1111 | 1116 | // Check access. |
1112 | 1117 | if ( ! bp_current_user_can( 'bp_moderate' ) && $comment->user_id != bp_loggedin_user_id() ) |
1113 | 1118 | exit( '-1' ); |
1114 | | |
1115 | | if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) ) |
1116 | | exit( '-1' ); |
1117 | 1119 | |
1118 | 1120 | /** This action is documented in bp-activity/bp-activity-actions.php */ |
1119 | 1121 | do_action( 'bp_activity_before_action_delete_activity', $_POST['id'], $comment->user_id ); |