- Timestamp:
- 12/05/2016 10:41:20 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r11256 r11270 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'] ); … … 1111 1116 // Check access. 1112 1117 if ( ! bp_current_user_can( 'bp_moderate' ) && $comment->user_id != bp_loggedin_user_id() ) 1113 exit( '-1' );1114 1115 if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) )1116 1118 exit( '-1' ); 1117 1119
Note: See TracChangeset
for help on using the changeset viewer.