Skip to:
Content

bbPress.org

Ticket #1479: 1479-1.diff

File 1479-1.diff, 653 bytes (added by jkudish, 13 years ago)
  • bb-includes/functions.bb-posts.php

     
    626626 * @param int $post_id ID of new post
    627627 */
    628628function bb_notify_subscribers( $post_id ) {
    629         global $bbdb, $bb_ksd_pre_post_status;
    630 
    631         if ( !empty( $bb_ksd_pre_post_status ) )
    632                 return false;
     629        global $bbdb;
    633630
    634631        if ( !$post = bb_get_post( $post_id ) )
    635632                return false;
    636633
     634        // bozo or spam
     635        if ( 2 == $post->post_status )
     636                return false;
     637
    637638        if ( !$topic = get_topic( $post->topic_id ) )
    638639                return false;
    639640