Changeset 4961 for trunk/bp-blogs/bp-blogs-functions.php
- Timestamp:
- 08/10/2011 06:32:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-functions.php
r4959 r4961 35 35 36 36 /** 37 * Populates the BP blogs table with existing blogs. 37 * Populates the BP blogs table with existing blogs. 38 38 * 39 39 * @package BuddyPress Blogs … … 56 56 $users = get_users( array( 'blog_id' => $blog_id ) ); 57 57 $subscribers = get_users( array( 'blog_id' => $blog_id, 'role' => 'subscriber' ) ); 58 58 59 59 if ( $users ) { 60 60 foreach ( (array)$users as $user ) { … … 103 103 104 104 $is_private = !empty( $_POST['blog_public'] ) && (int)$_POST['blog_public'] ? false : true; 105 $is_private = !apply_filters( 'bp_is_new_blog_public', !$is_private ); 105 $is_private = !apply_filters( 'bp_is_new_blog_public', !$is_private ); 106 106 107 107 // Only record this activity if the blog is public … … 166 166 return false; 167 167 168 $is_blog_public = apply_filters( 'bp_is_blog_public', (int)get_blog_option( $blog_id, 'blog_public' ) ); 168 $is_blog_public = apply_filters( 'bp_is_blog_public', (int)get_blog_option( $blog_id, 'blog_public' ) ); 169 169 170 170 if ( 'publish' == $post->post_status && empty( $post->post_password ) ) {
Note: See TracChangeset
for help on using the changeset viewer.