Changeset 16376
- Timestamp:
- 11/14/2010 08:35:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-posts-list-table.php
r16368 r16376 265 265 266 266 $posts_columns = array(); 267 267 268 $posts_columns['cb'] = '<input type="checkbox" />'; 269 268 270 /* translators: manage posts column name */ 269 271 $posts_columns['title'] = _x( 'Title', 'column name' ); 270 $posts_columns['author'] = __( 'Author' ); 272 273 if ( post_type_supports( $post_type, 'author' ) ) 274 $posts_columns['author'] = __( 'Author' ); 275 271 276 if ( empty( $post_type ) || is_object_in_taxonomy( $post_type, 'category' ) ) 272 277 $posts_columns['categories'] = __( 'Categories' ); 278 273 279 if ( empty( $post_type ) || is_object_in_taxonomy( $post_type, 'post_tag' ) ) 274 280 $posts_columns['tags'] = __( 'Tags' ); 281 275 282 $post_status = !empty( $_REQUEST['post_status'] ) ? $_REQUEST['post_status'] : 'all'; 276 if ( !in_array( $post_status, array( 'pending', 'draft', 'future' ) ) && ( empty( $post_type ) || post_type_supports( $post_type, 'comments' ) ) )283 if ( post_type_supports( $post_type, 'comments' ) && !in_array( $post_status, array( 'pending', 'draft', 'future' ) ) ) 277 284 $posts_columns['comments'] = '<div class="vers"><img alt="' . esc_attr__( 'Comments' ) . '" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" /></div>'; 285 278 286 $posts_columns['date'] = __( 'Date' ); 279 287
Note: See TracChangeset
for help on using the changeset viewer.