Skip to:
Content

BuddyPress.org

Changeset 3578 for trunk/bp-blogs.php


Ignore:
Timestamp:
12/24/2010 02:01:43 PM (13 years ago)
Author:
boonebgorges
Message:

Corrects path to registration.php in bp_core_screen_general_settings(). Fixes #2285; props gian-ava. Also fixes some WP_DEBUG problems in the blogs component.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs.php

    r3571 r3578  
    289289
    290290    $recorded_blog_id = $recorded_blog->save();
     291   
     292    $is_recorded = !empty( $recorded_blog_id ) ? true : false;
    291293
    292294    bp_blogs_update_blogmeta( $recorded_blog->blog_id, 'name', $name );
    293295    bp_blogs_update_blogmeta( $recorded_blog->blog_id, 'description', $description );
    294296    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;
    295299
    296300    // Only record this activity if the blog is public
    297     if ( (int)$_POST['blog_public'] && !$no_activity ) {
     301    if ( !$is_private && !$no_activity ) {
    298302        // Record this in activity streams
    299303        bp_blogs_record_activity( array(
     
    714718    }
    715719
    716     wp_cache_set( 'bp_blogs_blogmeta_' . $blog_id . '_' . $meta_key, $metas, 'bp' );
     720    wp_cache_set( 'bp_blogs_blogmeta_' . $blog_id . '_' . $meta_key, $meta_value, 'bp' );
    717721
    718722    return true;
Note: See TracChangeset for help on using the changeset viewer.