Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/17/2012 01:05:05 AM (12 years ago)
Author:
johnjamesjacoby
Message:

When fully deleting a topic, all replies should be deleted also. Fixes #1718.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-topic-functions.php

    r3611 r3668  
    27402740    do_action( 'bbp_delete_topic', $topic_id );
    27412741
    2742     // Valid topic/reply statuses
    2743     $post_stati = join( ',', array( bbp_get_public_status_id(), bbp_get_spam_status_id(), bbp_get_trash_status_id() ) );
    2744 
    27452742    // Topic is being permanently deleted, so its replies gotta go too
    27462743    if ( bbp_has_replies( array(
    27472744        'post_type'      => bbp_get_reply_post_type(),
    2748         'post_status'    => $post_stati,
     2745        'post_status'    => 'any',
    27492746        'posts_per_page' => -1,
    27502747        'meta_query'     => array( array(
Note: See TracChangeset for help on using the changeset viewer.