Skip to:
Content

BuddyPress.org

Changeset 7076


Ignore:
Timestamp:
05/15/2013 06:26:41 PM (7 years ago)
Author:
r-a-y
Message:

Only register 'new_blog' activity action on multisite installs.

Fixes #4980. Props imath.

File:
1 edited

Legend:

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

    r6342 r7076  
    2424
    2525    // Bail if activity is not active
    26     if ( ! bp_is_active( 'activity' ) )
     26    if ( ! bp_is_active( 'activity' ) ) {
    2727        return false;
     28    }
    2829
    29     bp_activity_set_action( $bp->blogs->id, 'new_blog',         __( 'New site created',        'buddypress' ) );
     30    if ( is_multisite() ) {
     31        bp_activity_set_action( $bp->blogs->id, 'new_blog', __( 'New site created',        'buddypress' ) );
     32    }
     33
    3034    bp_activity_set_action( $bp->blogs->id, 'new_blog_post',    __( 'New post published',      'buddypress' ) );
    3135    bp_activity_set_action( $bp->blogs->id, 'new_blog_comment', __( 'New post comment posted', 'buddypress' ) );
Note: See TracChangeset for help on using the changeset viewer.