Skip to:
Content

bbPress.org

Ticket #3418: 3418.01.patch

File 3418.01.patch, 872 bytes (added by r-a-y, 9 months ago)
  • src/includes/topics/functions.php

     
    249249
    250250        /** Topic Duplicate *******************************************************/
    251251
    252         if ( ! bbp_check_for_duplicate( array( 'post_type' => bbp_get_topic_post_type(), 'post_author' => $topic_author, 'post_content' => $topic_content, 'anonymous_data' => $anonymous_data ) ) ) {
     252        if ( ! bbp_check_for_duplicate( array( 'post_type' => bbp_get_topic_post_type(), 'post_author' => $topic_author, 'post_content' => $topic_content, 'post_parent' => $forum_id, 'anonymous_data' => $anonymous_data ) ) ) {
    253253                bbp_add_error( 'bbp_topic_duplicate', __( '<strong>Error</strong>: Duplicate topic detected; it looks as though you&#8217;ve already said that.', 'bbpress' ) );
    254254        }
    255255