Changeset 4115
- Timestamp:
- 03/11/2011 08:46:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-functions.php
r4107 r4115 84 84 85 85 $is_private = !empty( $_POST['blog_public'] ) && (int)$_POST['blog_public'] ? false : true; 86 $is_private = !apply_filters( 'bp_is_new_blog_public', !$is_private ); 86 87 87 88 // Only record this activity if the blog is public … … 146 147 return false; 147 148 149 $is_blog_public = apply_filters( 'bp_is_blog_public', (int)get_blog_option( $blog_id, 'blog_public' ) ); 150 148 151 if ( 'publish' == $post->post_status && empty( $post->post_password ) ) { 149 if ( (int)get_blog_option( $blog_id, 'blog_public' )|| !is_multisite() ) {152 if ( $is_blog_public || !is_multisite() ) { 150 153 // Record this in activity streams 151 154 $post_permalink = get_permalink( $post_id ); … … 220 223 return false; 221 224 225 $is_blog_public = apply_filters( 'bp_is_blog_public', (int)get_blog_option( $blog_id, 'blog_public' ) ); 226 222 227 // If blog is public allow activity to be posted 223 if ( get_blog_option( $blog_id, 'blog_public' )) {228 if ( $is_blog_public ) { 224 229 225 230 // Get activity related links
Note: See TracChangeset
for help on using the changeset viewer.