Making WordPress.org


Ignore:
Timestamp:
09/17/2023 06:18:29 PM (17 months ago)
Author:
Clorith
Message:

Support Forums: Improved topic report flows.

Where previously, a reported topic would store the report in post meta and be limited to the sidebar view, and any reaction would be secret, unless a moderator contacted reporters publicly, this is no longer the case.

When a report is made, while we maintain the modlook tag as before for compatibility reasons, the report is added as a custom post type entry. This allows for tracking vigilant users who help out a lot, as well as giving us access to valuable data about what kind of reports are being made.

The reports are also presented as "replies" within a topic, giving valuable contextual information to those reviewing reports during the time of the report. This element is also presented in such a way that a moderator is able to respond to a report directly, letting the user view their previous reports and their outcomes within their forum profile, as well as them getting notified of the outcome by email when a topic is handled.

Fixes #5715.

File:
1 edited

Legend:

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

    r12377 r12892  
    5757                            printf( esc_attr__( "%s's Reviews Written", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) );
    5858                        ?>"><?php esc_html_e( 'Reviews Written', 'wporg-forums' ); ?></a>
     59                    </span>
     60                </li>
     61            <?php endif; ?>
     62
     63            <?php if ( current_user_can( 'moderate' ) || get_current_user_id() === bbp_get_user_id() ) : ?>
     64                <li class="<?php if ( wporg_support_is_single_user_reported_topics() ) :?>current<?php endif; ?>">
     65                    <span class='bbp-user-reviews-link'>
     66                        <a href="<?php bbp_user_profile_url(); ?>reports/" title="<?php
     67                            /* translators: %s: user's display name */
     68                            printf( esc_attr__( "%s's Submitted Reports", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) );
     69                        ?>"><?php esc_html_e( 'Reports Submitted', 'wporg-forums' ); ?></a>
    5970                    </span>
    6071                </li>
Note: See TracChangeset for help on using the changeset viewer.