Skip to:
Content

bbPress.org

Changes between Version 1 and Version 2 of Ticket #2690, comment 1


Ignore:
Timestamp:
09/21/2014 07:56:56 PM (7 years ago)
Author:
shanebp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2690, comment 1

    v1 v2  
    99        // $existing = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'show_hidden' => true, 'spam' => 'all') );
    1010        // if ( empty( $existing['total'] ) || ( 1 !== (int) $existing['total'] ) )
    11         //      return null;  //1;  //null;
     11        //      return null;
    1212}}}
    1313Duplicate entries are not created. And the body of the activity item is updated.
    1414
     15Otherwise, $existing[total']  is always empty, so null is returned and a new Activity item is created.
    1516I also tried, without success, adding 'count_total' => true to the bp_activity_get_specific call.
    1617