Changeset 4383 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php
- Timestamp:
- 11/21/2016 01:38:13 AM (9 years 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
r3332 r4383 105 105 /* translators: manage posts column name */ 106 106 'title' => _x( 'Title', 'column name', 'wporg-plugins' ), 107 'author' => __( 'Submitter', 'wporg-plugins' ), 107 108 'tested' => __( 'Tested up to', 'wporg-plugins' ), 108 109 'rating' => __( 'Rating', 'wporg-plugins' ), … … 112 113 ); 113 114 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 115 $taxonomies = get_object_taxonomies( $post_type, 'objects' ); 116 $taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' ); 117 $taxonomies = apply_filters( "manage_taxonomies_for_{$post_type}_columns", $taxonomies, $post_type ); 118 $taxonomies = array_filter( $taxonomies, 'taxonomy_exists' ); 119 120 foreach ( $taxonomies as $taxonomy ) { 121 $column_key = 'taxonomy-' . $taxonomy; 122 $posts_columns[ $column_key ] = get_taxonomy( $taxonomy )->labels->name; 123 } 124 125 $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>'; 118 126 $posts_columns['date'] = __( 'Date', 'wporg-plugins' ); 119 127
Note: See TracChangeset
for help on using the changeset viewer.