- Timestamp:
- 06/03/2015 03:12:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r32663 r32687 248 248 $posts_columns = array(); 249 249 $posts_columns['cb'] = '<input type="checkbox" />'; 250 $posts_columns['icon'] = '';251 250 /* translators: column name */ 252 251 $posts_columns['title'] = _x( 'File', 'column name' ); … … 362 361 363 362 switch ( $column_name ) { 364 case ' icon':363 case 'title': 365 364 list( $mime ) = explode( '/', $post->post_mime_type ); 366 $attributes = 'class="column-icon media-icon ' . $mime . '-icon"' . $style; 365 366 echo "<div class='media-icon {$mime}-icon'>"; 367 367 368 368 if ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) { … … 375 375 } 376 376 } 377 break; 378 379 case 'title': 377 378 echo '</div><div class="media-info">'; 380 379 ?> 381 380 <strong> … … 389 388 _media_states( $post ); ?></strong> 390 389 <p class="filename"><?php echo wp_basename( $post->guid ); ?></p> 390 </div> 391 391 <?php 392 392 break;
Note: See TracChangeset
for help on using the changeset viewer.