Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/14/2015 12:46:38 AM (10 years ago)
Author:
johnjamesjacoby
Message:

I think this building should be condemned. There's serious metal fatigue in all the load-bearing members, the wiring is substandard, it's completely inadequate for our power needs, and the neighborhood is like a demilitarized zone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/activity.php

    r5770 r5829  
    386386
    387387        // Bail early if topic is by anonymous user
    388         if ( !empty( $anonymous_data ) ) {
     388        if ( ! empty( $anonymous_data ) ) {
    389389            return;
    390390        }
    391391
    392392        // Bail if site is private
    393         if ( !bbp_is_site_public() ) {
     393        if ( ! bbp_is_site_public() ) {
    394394            return;
    395395        }
     
    406406
    407407        // Bail if topic is not published
    408         if ( !bbp_is_topic_published( $topic_id ) ) {
     408        if ( ! bbp_is_topic_published( $topic_id ) ) {
    409409            return;
    410410        }
     
    444444
    445445        // Add the activity entry ID as a meta value to the topic
    446         if ( !empty( $activity_id ) ) {
     446        if ( ! empty( $activity_id ) ) {
    447447            update_post_meta( $topic_id, '_bbp_activity_id', $activity_id );
    448448        }
     
    459459        // Get activity ID, bail if it doesn't exist
    460460        $activity_id = $this->get_activity_id( $topic_id );
    461         if ( !empty( $activity_id ) ) {
     461        if ( ! empty( $activity_id ) ) {
    462462            return bp_activity_delete( array( 'id' => $activity_id ) );
    463463        }
     
    535535
    536536        // Do not log activity of anonymous users
    537         if ( !empty( $anonymous_data ) ) {
     537        if ( ! empty( $anonymous_data ) ) {
    538538            return;
    539539        }
    540540
    541541        // Bail if site is private
    542         if ( !bbp_is_site_public() ) {
     542        if ( ! bbp_is_site_public() ) {
    543543            return;
    544544        }
     
    556556
    557557        // Bail if reply is not published
    558         if ( !bbp_is_reply_published( $reply_id ) ) {
     558        if ( ! bbp_is_reply_published( $reply_id ) ) {
    559559            return;
    560560        }
     
    597597
    598598        // Add the activity entry ID as a meta value to the reply
    599         if ( !empty( $activity_id ) ) {
     599        if ( ! empty( $activity_id ) ) {
    600600            update_post_meta( $reply_id, '_bbp_activity_id', $activity_id );
    601601        }
     
    613613        // Get activity ID, bail if it doesn't exist
    614614        $activity_id = $this->get_activity_id( $reply_id );
    615         if ( !empty( $activity_id ) ) {
     615        if ( ! empty( $activity_id ) ) {
    616616            return bp_activity_delete( array( 'id' => $activity_id ) );
    617617        }
Note: See TracChangeset for help on using the changeset viewer.