Ticket #1479: 1479-1.diff
File 1479-1.diff, 653 bytes (added by , 13 years ago) |
---|
-
bb-includes/functions.bb-posts.php
626 626 * @param int $post_id ID of new post 627 627 */ 628 628 function 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; 633 630 634 631 if ( !$post = bb_get_post( $post_id ) ) 635 632 return false; 636 633 634 // bozo or spam 635 if ( 2 == $post->post_status ) 636 return false; 637 637 638 if ( !$topic = get_topic( $post->topic_id ) ) 638 639 return false; 639 640