Changeset 9052 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 09/27/2014 09:39:23 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r8996 r9052 1351 1351 $activity_id = $r['activity_id']; 1352 1352 1353 // Get the parent activity 1354 $activity = new BP_Activity_Activity( $activity_id ); 1355 1356 // Bail if the parent activity does not exist 1357 if ( empty( $activity->date_recorded ) ) { 1358 return false; 1359 } 1360 1353 1361 // Check to see if the parent activity is hidden, and if so, hide this comment publically. 1354 $activity = new BP_Activity_Activity( $activity_id );1355 1362 $is_hidden = ( (int) $activity->hide_sitewide ) ? 1 : 0; 1356 1363 … … 1662 1669 } 1663 1670 } 1664 1671 1665 1672 // Delete the comment itself 1666 1673 bp_activity_delete( array(
Note: See TracChangeset
for help on using the changeset viewer.