Skip to:
Content

BuddyPress.org

Ticket #5900: 5900.01.patch

File 5900.01.patch, 649 bytes (added by r-a-y, 10 years ago)
  • src/bp-activity/bp-activity-template.php

     
    16941694                // Users are allowed to delete their own activity. This is actually
    16951695                // quite powerful, because doing so also deletes all comments to that
    16961696                // 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() ) ) {
    16981698                        $can_delete = true;
    16991699                }
    17001700