Skip to:
Content

BuddyPress.org

Ticket #1264: password-protect-comments-out-of-activity.patch

File password-protect-comments-out-of-activity.patch, 476 bytes (added by boonebgorges, 17 years ago)
  • bp-blogs.php

     
    446446        if ( !$user_id )
    447447                return false;
    448448
     449        $post_id = (int)$comment->comment_post_ID;
     450        $post = get_post($post_id);
     451       
     452        if ( '' != $post->post_password )
     453                return false;
     454
    449455        $recorded_comment = new BP_Blogs_Comment;
    450456        $recorded_comment->user_id = $user_id;
    451457        $recorded_comment->blog_id = $wpdb->blogid;