Ticket #49852: 49852.patch
File 49852.patch, 400 bytes (added by , 3 years ago) |
---|
Line | |
---|---|
1 | 383,388d382 |
2 | < $attachment_id = $post->ID; |
3 | < |
4 | < if($mime == 'video'){ |
5 | < $attachment_id = get_post_thumbnail_id($post->ID); |
6 | < } |
7 | < |
8 | 390c384 |
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 |