Changeset 3578 for trunk/bp-blogs.php
- Timestamp:
- 12/24/2010 02:01:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs.php
r3571 r3578 289 289 290 290 $recorded_blog_id = $recorded_blog->save(); 291 292 $is_recorded = !empty( $recorded_blog_id ) ? true : false; 291 293 292 294 bp_blogs_update_blogmeta( $recorded_blog->blog_id, 'name', $name ); 293 295 bp_blogs_update_blogmeta( $recorded_blog->blog_id, 'description', $description ); 294 296 bp_blogs_update_blogmeta( $recorded_blog->blog_id, 'last_activity', bp_core_current_time() ); 297 298 $is_private = !empty( $_POST['blog_public'] ) && (int)$_POST['blog_public'] ? false : true; 295 299 296 300 // Only record this activity if the blog is public 297 if ( (int)$_POST['blog_public']&& !$no_activity ) {301 if ( !$is_private && !$no_activity ) { 298 302 // Record this in activity streams 299 303 bp_blogs_record_activity( array( … … 714 718 } 715 719 716 wp_cache_set( 'bp_blogs_blogmeta_' . $blog_id . '_' . $meta_key, $meta s, 'bp' );720 wp_cache_set( 'bp_blogs_blogmeta_' . $blog_id . '_' . $meta_key, $meta_value, 'bp' ); 717 721 718 722 return true;
Note: See TracChangeset
for help on using the changeset viewer.