Making WordPress.org

Changeset 3232


Ignore:
Timestamp:
05/24/2016 04:24:19 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Bring back comment column for Plugin Reviewers.

Props ChopinBach for initial patch.
Fixes #1715.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php

    r3157 r3232  
    110110            'downloads' => __( 'Downloads', 'wporg-plugins' ),
    111111            'support'   => __( 'Support', 'wporg-plugins' ),
    112             'date'      => __( 'Date', 'wporg-plugins' ),
    113112        );
     113
     114        if ( current_user_can( 'plugin_review' ) ) {
     115            $posts_columns['comments'] = '<span class="vers comment-grey-bubble" title="' . esc_attr__( 'Internal Notes', 'wporg-plugins' ) . '"><span class="screen-reader-text">' . __( 'Internal Notes', 'wporg-plugins' ) . '</span></span>';
     116        }
     117
     118        $posts_columns['date'] = __( 'Date', 'wporg-plugins' );
    114119
    115120        /**
Note: See TracChangeset for help on using the changeset viewer.