Changeset 3578
- Timestamp:
- 12/24/2010 02:01:43 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 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; -
trunk/bp-blogs/bp-blogs-classes.php
r3553 r3578 9 9 global $bp, $wpdb; 10 10 11 if ( !$user_id ) 12 $user_id = $bp->displayed_user->id; 11 $user_id = $bp->displayed_user->id; 13 12 14 13 if ( $id ) { -
trunk/bp-core/bp-core-settings.php
r3526 r3578 42 42 check_admin_referer('bp_settings_general'); 43 43 44 require_once( WPINC . '/registration.php' );44 require_once( ABSPATH . WPINC . '/registration.php' ); 45 45 46 46 // Form has been submitted and nonce checks out, lets do it.
Note: See TracChangeset
for help on using the changeset viewer.