Changeset 13307 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php
- Timestamp:
- 03/12/2024 01:41:59 AM (6 months ago)
- 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
r13243 r13307 35 35 public function filter_columns( $columns ) { 36 36 // Rename some columns. 37 $columns['author'] = __( 'Submitter', 'wporg-plugins' ); 38 $columns['reviewer'] = __( 'Assigned Reviewer', 'wporg-plugins' ); 39 $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>'; 40 $columns['zip'] = 'Latest Zip'; 41 $columns['loc'] = 'Lines of PHP Code'; 37 $columns['author'] = __( 'Submitter', 'wporg-plugins' ); 38 $columns['reviewer'] = __( 'Assigned Reviewer', 'wporg-plugins' ); 39 $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>'; 40 $columns['zip'] = 'Latest Zip'; 41 $columns['loc'] = 'Lines of PHP Code'; 42 $columns['submitted_date'] = 'Submitted Date'; 42 43 43 44 // We don't want the stats column. … … 53 54 */ 54 55 public function filter_sortable_columns( $columns ) { 55 $columns[ 'reviewer' ] = [ 'assigned_reviewer_time', 'asc' ]; 56 $columns[ 'zip' ] = [ '_submitted_zip_size', 'asc' ]; 57 $columns[ 'loc' ] = [ '_submitted_zip_loc', 'asc' ]; 56 $columns[ 'reviewer' ] = [ 'assigned_reviewer_time', 'asc' ]; 57 $columns[ 'zip' ] = [ '_submitted_zip_size', 'asc' ]; 58 $columns[ 'loc' ] = [ '_submitted_zip_loc', 'asc' ]; 59 $columns[ 'submitted_date' ] = [ '_submitted_date', 'asc' ]; 58 60 59 61 return $columns; … … 77 79 $columns[] = 'zip'; 78 80 $columns[] = 'loc'; 81 $columns[] = 'submitted_date'; 79 82 } 80 83 … … 730 733 echo number_format_i18n( (int) $post->_submitted_zip_loc ) ?: '-'; 731 734 } 735 736 public function column_submitted_date( $post ) { 737 echo gmdate( 'Y/m/d g:i a', $post->_submitted_date ?? 0 ); 738 } 732 739 }
Note: See TracChangeset
for help on using the changeset viewer.