Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/09/2011 09:43:33 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Fix issue when topics and replies are flagged as spam/trash where they would still update last active data for ancestors. Fixes #1631.
Fix issue when trashing and deleting a topic, replies may not be properly queried and updated. Fixes #1629.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-reply-template.php

    r3492 r3501  
    697697
    698698/**
     699 * Is the reply not spam or deleted?
     700 *
     701 * @since bbPress (r3496)
     702 *
     703 * @param int $reply_id Optional. Topic id
     704 * @uses bbp_get_reply_id() To get the reply id
     705 * @uses bbp_get_reply_status() To get the reply status
     706 * @return bool True if published, false if not.
     707 */
     708function bbp_is_reply_published( $reply_id = 0 ) {
     709    global $bbp;
     710
     711    $reply_status = bbp_get_reply_status( bbp_get_reply_id( $reply_id ) );
     712    return apply_filters( 'bbp_is_reply_published', 'publish' == $reply_status, $reply_id );
     713}
     714
     715/**
    699716 * Is the reply marked as spam?
    700717 *
Note: See TracChangeset for help on using the changeset viewer.