Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/08/2011 12:55:08 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Introduce bbp_is_site_public() function, and use it to prevent BuddyPress activity stream additions for new topics and replies if entire site is private.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-extend-buddypress.php

    r3397 r3398  
    170170     */
    171171    private function record_activity( $args = '' ) {
    172         global $bp;
    173172
    174173        // Bail if activity is not active
     
    270269            return;
    271270
     271        // Bail if site is private
     272        if ( !bbp_is_site_public() )
     273            return;
     274
    272275        // Validate activity data
    273276        $user_id  = $topic_author_id;
     
    346349            return;
    347350
     351        // Bail if site is private
     352        if ( !bbp_is_site_public() )
     353            return;
     354
    348355        // Validate activity data
    349356        $user_id  = $reply_author_id;
Note: See TracChangeset for help on using the changeset viewer.