Skip to:
Content

BuddyPress.org

Changeset 5576


Ignore:
Timestamp:
12/20/2011 04:05:04 PM (13 years ago)
Author:
djpaul
Message:

Don't show view activity permalink in admin if the item is spam. Fixes #3871

File:
1 edited

Legend:

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

    r5553 r5576  
    13241324
    13251325        // Activity permalink
    1326         printf( __( '<a href="%1$s">View Activity</a>', 'buddypress' ), bp_activity_get_permalink( $item['id'], (object) $item ) );
     1326        if ( ! $item['is_spam'] )
     1327            printf( __( '<a href="%1$s">View Activity</a>', 'buddypress' ), bp_activity_get_permalink( $item['id'], (object) $item ) );
    13271328    }
    13281329
Note: See TracChangeset for help on using the changeset viewer.