Changeset 5829 for trunk/src/includes/extend/buddypress/activity.php
- Timestamp:
- 07/14/2015 12:46:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/buddypress/activity.php
r5770 r5829 386 386 387 387 // Bail early if topic is by anonymous user 388 if ( ! empty( $anonymous_data ) ) {388 if ( ! empty( $anonymous_data ) ) { 389 389 return; 390 390 } 391 391 392 392 // Bail if site is private 393 if ( ! bbp_is_site_public() ) {393 if ( ! bbp_is_site_public() ) { 394 394 return; 395 395 } … … 406 406 407 407 // Bail if topic is not published 408 if ( ! bbp_is_topic_published( $topic_id ) ) {408 if ( ! bbp_is_topic_published( $topic_id ) ) { 409 409 return; 410 410 } … … 444 444 445 445 // Add the activity entry ID as a meta value to the topic 446 if ( ! empty( $activity_id ) ) {446 if ( ! empty( $activity_id ) ) { 447 447 update_post_meta( $topic_id, '_bbp_activity_id', $activity_id ); 448 448 } … … 459 459 // Get activity ID, bail if it doesn't exist 460 460 $activity_id = $this->get_activity_id( $topic_id ); 461 if ( ! empty( $activity_id ) ) {461 if ( ! empty( $activity_id ) ) { 462 462 return bp_activity_delete( array( 'id' => $activity_id ) ); 463 463 } … … 535 535 536 536 // Do not log activity of anonymous users 537 if ( ! empty( $anonymous_data ) ) {537 if ( ! empty( $anonymous_data ) ) { 538 538 return; 539 539 } 540 540 541 541 // Bail if site is private 542 if ( ! bbp_is_site_public() ) {542 if ( ! bbp_is_site_public() ) { 543 543 return; 544 544 } … … 556 556 557 557 // Bail if reply is not published 558 if ( ! bbp_is_reply_published( $reply_id ) ) {558 if ( ! bbp_is_reply_published( $reply_id ) ) { 559 559 return; 560 560 } … … 597 597 598 598 // Add the activity entry ID as a meta value to the reply 599 if ( ! empty( $activity_id ) ) {599 if ( ! empty( $activity_id ) ) { 600 600 update_post_meta( $reply_id, '_bbp_activity_id', $activity_id ); 601 601 } … … 613 613 // Get activity ID, bail if it doesn't exist 614 614 $activity_id = $this->get_activity_id( $reply_id ); 615 if ( ! empty( $activity_id ) ) {615 if ( ! empty( $activity_id ) ) { 616 616 return bp_activity_delete( array( 'id' => $activity_id ) ); 617 617 }
Note: See TracChangeset
for help on using the changeset viewer.