Making WordPress.org

Changeset 12791


Ignore:
Timestamp:
08/01/2023 11:02:37 PM (3 years ago)
Author:
coffee2code
Message:

Photo Directory, Moderation: In Photo Moderators dashboard widget, reduce width of columns for approval/rejection counts.

See #7130.

File:
1 edited

Legend:

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

    r12768 r12791  
    791791                $users = get_users( $args );
    792792
    793                 echo '<table class="wp-list-table widefat fixed striped table-view-list">';
     793                echo "<style>\n";
     794                echo <<<CSS
     795                        #dashboard-photo-moderators .col-num-approved,
     796                        #dashboard-photo-moderators .col-num-rejected {
     797                                width: 50px;
     798                        }
     799CSS;
     800                echo "</style>\n";
     801
     802                echo '<table id="dashboard-photo-moderators" class="wp-list-table widefat fixed striped table-view-list">';
    794803                echo '<thead><tr>';
    795804                echo '<th>' . __( 'Username', 'wporg-photos' ) . '</th>';
    796805                echo '<th>' . __( 'Name', 'wporg-photos' ) . '</th>';
    797                 echo '<th title="' . esc_attr__( 'Number of photos approved', 'wporg-photos' ) . '"><span class="dashicons dashicons-thumbs-up"></span></th>';
    798                 echo '<th title="' . esc_attr__( 'Number of photos rejected', 'wporg-photos' ) . '"><span class="dashicons dashicons-thumbs-down"></span></th>';
     806                echo '<th class="col-num-approved" title="' . esc_attr__( 'Number of photos approved', 'wporg-photos' ) . '"><span class="dashicons dashicons-thumbs-up"></span></th>';
     807                echo '<th class="col-num-rejected" title="' . esc_attr__( 'Number of photos rejected', 'wporg-photos' ) . '"><span class="dashicons dashicons-thumbs-down"></span></th>';
    799808                echo '<th>' . __( 'Last Moderated', 'wporg-photos' ) . '</th>';
    800809                echo '</tr></thead>';
Note: See TracChangeset for help on using the changeset viewer.