Making WordPress.org


Ignore:
Timestamp:
01/13/2025 06:58:40 PM (12 months ago)
Author:
coffee2code
Message:

Photo Directory, Moderation: Combine username and name columns into a single column within admin dashboard widget.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/moderation.php

    r14055 r14355  
    806806        echo '<table id="dashboard-photo-moderators" class="wp-list-table widefat fixed striped table-view-list">';
    807807        echo '<thead><tr>';
    808         echo '<th>' . __( 'Username', 'wporg-photos' ) . '</th>';
    809         echo '<th>' . __( 'Name', 'wporg-photos' ) . '</th>';
     808        echo '<th>' . __( 'Moderator', 'wporg-photos' ) . '</th>';
    810809        echo '<th class="col-num-approved" title="' . esc_attr__( 'Number of photos approved', 'wporg-photos' ) . '"><span class="dashicons dashicons-thumbs-up"></span></th>';
    811810        echo '<th class="col-num-rejected" title="' . esc_attr__( 'Number of photos rejected', 'wporg-photos' ) . '"><span class="dashicons dashicons-thumbs-down"></span></th>';
     
    824823
    825824            echo '<tr>';
    826             echo '<td>' . sprintf( '<a href="%s">%s</a>', esc_url( 'https://profiles.wordpress.org/' . $user->user_nicename . '/' ), $user->user_nicename ) . '</td>';
    827             echo '<td>' . esc_html( $user->display_name ) . '</td>';
     825            echo '<td>';
     826            printf(
     827                '<a href="%s">@%s</a><br>%s',
     828                esc_url( 'https://profiles.wordpress.org/' . $user->user_nicename . '/' ),
     829                esc_html( $user->user_nicename ),
     830                esc_html( $user->display_name )
     831            );
     832            echo '</td>';
    828833
    829834            $base_edit_url = add_query_arg( [ 'post_type' => Registrations::get_post_type(), 'author' => $user->ID ], admin_url( 'edit.php' ) );
Note: See TracChangeset for help on using the changeset viewer.