WordPress.org

Make WordPress Core

Ticket #49852: 49852.patch

File 49852.patch, 400 bytes (added by samful, 5 months ago)

samful's patch for video thumbnails not appearing on list view

Line 
1383,388d382
2<               $attachment_id = $post->ID;
3<
4<               if($mime == 'video'){
5<                       $attachment_id = get_post_thumbnail_id($post->ID);
6<               }
7<
8390c384
9<               $thumb      = wp_get_attachment_image( $attachment_id, 'array( 60, 60 )', true, array( 'alt' => '' ) ); //i changed this line to $attachment_id
10---
11>               $thumb      = wp_get_attachment_image( $post->ID, array( 60, 60 ), true, array( 'alt' => '' ) );
12