Skip to:
Content

BuddyPress.org

Changeset 6980


Ignore:
Timestamp:
05/01/2013 01:47:54 PM (11 years ago)
Author:
boonebgorges
Message:

Redirect activity permalinks to home URL when activity user_id = 0

This prevents harmful redirect loops when plugins add activity items that are
not associated with a specific user or group, which means that BP has no
template-loading function.

Fixes #4971

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-actions.php

    r6734 r6980  
    8888
    8989    // Set redirect to users' activity stream
    90     } else {
     90    } else if ( ! empty( $activity->user_id ) ) {
    9191        $redirect = bp_core_get_user_domain( $activity->user_id, $activity->user_nicename, $activity->user_login ) . bp_get_activity_slug() . '/' . $activity->id . '/';
    9292    }
Note: See TracChangeset for help on using the changeset viewer.