Making WordPress.org


Ignore:
Timestamp:
09/18/2025 05:11:40 AM (12 months ago)
Author:
dd32
Message:

Registration: Allow easy 'Approve as spectator' selection when an account is caught in moderation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/admin/class-user-registrations-list-table.php

    r14531 r14533  
    517517        function column_scores( $item ) {
    518518
    519                 echo ( $item->cleared ? 'Passed' : 'Failed' ) . '<br>';
     519                echo ( $item->cleared ? 'Passed' : 'Failed' );
     520                if ( $item->cleared && 'spectator' === ( $item->meta->role ?? '' ) ) {
     521                        echo ' (mark as: spectator)';
     522                }
     523                echo '<br>';
    520524
    521525                foreach ( $item->scores as $type => $val ) {
     
    585589                        $url = wp_nonce_url( $url, 'clear_' . $item->user_email );
    586590                        $row_actions['approve-reg'] = '<a href="' . esc_url( $url ) . '">Approve</a>';
     591                        $row_actions['approve-spectator'] = '<a href="' . esc_url( add_query_arg( 'role', 'spectator', $url ) ) . '">Approve as Spectator</a>';
    587592                }
    588593
Note: See TracChangeset for help on using the changeset viewer.