Ticket #5900: 5900.01.patch
File 5900.01.patch, 649 bytes (added by , 10 years ago) |
---|
-
src/bp-activity/bp-activity-template.php
1694 1694 // Users are allowed to delete their own activity. This is actually 1695 1695 // quite powerful, because doing so also deletes all comments to that 1696 1696 // activity item. We should revisit this eventually. 1697 if ( isset( $activity->user_id ) && ( $activity->user_id === bp_loggedin_user_id() ) ) {1697 if ( isset( $activity->user_id ) && ( (int) $activity->user_id === bp_loggedin_user_id() ) ) { 1698 1698 $can_delete = true; 1699 1699 } 1700 1700