Skip to:
Content

bbPress.org

Changeset 3996


Ignore:
Timestamp:
06/21/2012 04:36:10 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Notifications (1.1 branch):

  • Check post_status before notifying subscribers, in bb_notify_subscribers().
  • Fixes #1479.
  • Props jkudish.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bb-includes/functions.bb-posts.php

    r2912 r3996  
    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;
     633
     634    // bozo or spam
     635    if ( 2 == $post->post_status )
     636        return false;
    636637
    637638    if ( !$topic = get_topic( $post->topic_id ) )
Note: See TracChangeset for help on using the changeset viewer.