Skip to:
Content

BuddyPress.org

Changeset 5427


Ignore:
Timestamp:
12/01/2011 05:02:54 PM (13 years ago)
Author:
djpaul
Message:

Revert part of r5426 (See #3660). Reinstates part of r5408.

File:
1 edited

Legend:

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

    r5426 r5427  
    198198
    199199        // Is this a bulk request?
    200         if ( 'bulk_' == substr( $doaction, 0, 5 ) && !empty( $_REQUEST['aid'] ) ) {
     200        if ( 'bulk_' == substr( $doaction, 0, 5 ) && ! empty( $_REQUEST['aid'] ) ) {
    201201            // Check this is a valid form submission
    202202            check_admin_referer( 'bulk-activities' );
     
    855855    function column_response( $item ) {
    856856        // Is $item is a root activity?
    857         if ( empty( $item['item_id'] ) ) {
     857        if ( empty( $item['item_id'] ) || ! in_array( $item['type'], apply_filters( 'bp_activity_admin_root_activity_types', array( 'activity_comment' ), $item ) ) ) {
    858858            $comment_count     = !empty( $item['children'] ) ? bp_activity_recurse_comment_count( (object) $item ) : 0;
    859859            $root_activity_url = network_admin_url( 'admin.php?page=bp-activity&aid=' . $item['id'] );
Note: See TracChangeset for help on using the changeset viewer.