Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/24/2015 11:21:28 AM (6 years ago)
Author:
netweb
Message:

Replies: In bbp_update_reply_walker() always update the topics last active time with bbp_update_topic_last_active_time() regardless of reply's published status.

This changeset including unit tests ensures that when calling reply actions spam/unspam, trash/untrash, approve/unapprove the reply's parent topic's last active time is updated to the time of the last published reply.

Props netweb. See #2838

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/functions.php

    r5866 r5880  
    973973                }
    974974
    975                 // Only update if reply is published
    976                 if ( bbp_is_reply_published( $reply_id ) ) {
    977                     bbp_update_topic_last_active_time( $ancestor, $topic_last_active_time );
    978                 }
     975                // Update the topic last active time regardless of reply status.
     976                // See https://bbpress.trac.wordpress.org/ticket/2838
     977                bbp_update_topic_last_active_time( $ancestor, $topic_last_active_time );
    979978
    980979                // Counts
Note: See TracChangeset for help on using the changeset viewer.