Ticket #49852: 49852.5.diff
File 49852.5.diff, 907 bytes (added by , 3 years ago) |
---|
-
src/wp-admin/includes/class-wp-media-list-table.php
401 401 public function column_title( $post ) { 402 402 list( $mime ) = explode( '/', $post->post_mime_type ); 403 403 404 $attachment_id = $post->ID; 405 406 if ( $mime == 'video' || $mime == 'audio' ){ 407 $thumbnail_id = get_post_thumbnail_id($post->ID); 408 409 if ( !empty( $thumbnail_id ) ){ 410 $attachment_id = $thumbnail_id; 411 } 412 } 413 404 414 $title = _draft_or_post_title(); 405 $thumb = wp_get_attachment_image( $ post->ID, array( 60, 60 ), true, array( 'alt' => '' ) );415 $thumb = wp_get_attachment_image( $attachment_id, array( 60, 60 ), true, array( 'alt' => '' ) ); 406 416 $link_start = ''; 407 417 $link_end = ''; 408 418