Skip to:
Content

bbPress.org

Ticket #2858: 2858.2.patch

File 2858.2.patch, 1.6 KB (added by cfinke, 11 years ago)

Supersedes the previous patch. This patch also includes the post title when submitting a post as ham or spam.

  • trunk/includes/extend/akismet.php

     
    162162                        'comment_author'                 => $user_data['name'],
    163163                        'comment_author_email'           => $user_data['email'],
    164164                        'comment_author_url'             => $user_data['website'],
    165                         'comment_content'                => $post_data['post_content'],
     165                        'comment_content'                => trim( $post_data['post_title'] . "\n\n" . $post_data['post_content'] ),
    166166                        'comment_post_ID'                => $post_data['post_parent'],
    167167                        'comment_type'                   => $post_data['post_type'],
    168168                        'comment_total'                  => $user_data['total_posts'],
     
    289289                        'comment_author'       => $_post->post_author ? get_the_author_meta( 'display_name', $_post->post_author ) : get_post_meta( $post_id, '_bbp_anonymous_name',    true ),
    290290                        'comment_author_email' => $_post->post_author ? get_the_author_meta( 'email',        $_post->post_author ) : get_post_meta( $post_id, '_bbp_anonymous_email',   true ),
    291291                        'comment_author_url'   => $_post->post_author ? bbp_get_user_profile_url(            $_post->post_author ) : get_post_meta( $post_id, '_bbp_anonymous_website', true ),
    292                         'comment_content'      => $_post->post_content,
     292                        'comment_content'      => trim( $_post->post_title . "\n\n" . $_post->post_content ),
    293293                        'comment_date'         => $_post->post_date,
    294294                        'comment_ID'           => $post_id,
    295295                        'comment_post_ID'      => $_post->post_parent,