Making WordPress.org


Ignore:
Timestamp:
01/20/2021 05:31:04 AM (6 years ago)
Author:
dd32
Message:

Support: Add a 'All Replies' moderator view to see an overview all of current forum activity.

https://wordpress.org/support/view/all-replies/ compliments https://wordpress.org/support/view/all-topics/ however it doesn't exclude plugin/theme/review replies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-reply.php

    r9848 r10604  
    77 * @subpackage Theme
    88 */
     9
     10/*
     11 * Stub this in for this template, as bbPress not too smart sometimes.
     12 * On a "topic query" which is a reply query, it'll fail to return an ID.
     13 */
     14add_filter( 'bbp_get_reply_id', function( $reply_id, $passed_id ) {
     15        if ( ! $reply_id && ! $passed_id && bbp_is_reply( get_the_ID() ) ) {
     16                $reply_id = get_the_ID();
     17        }
     18
     19        return $reply_id;
     20}, 10, 2 );
    921
    1022if ( bbp_is_single_view() || bbp_is_search_results() || bbp_is_single_user_replies() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.