Ticket #23556: post.diff
| File post.diff, 907 bytes (added by JoshuaAbenazer, 3 months ago) |
|---|
-
post.php
4348 4348 4349 4349 $file = get_attached_file( $post->ID ); 4350 4350 4351 if ( !empty($imagedata['thumb']) && ($thumbfile = str_replace(basename($file), $imagedata['thumb'], $file)) && file_exists($thumbfile) )4351 if ( isset($imagedata['sizes]['thumbnail']['file']) && !empty($imagedata['sizes]['thumbnail']['file']) && ($thumbfile = str_replace(basename($file), $imagedata['sizes']['thumbnail']['file], $file)) && file_exists($thumbfile) ) 4352 4352 return apply_filters( 'wp_get_attachment_thumb_file', $thumbfile, $post->ID ); 4353 elseif ( !empty($imagedata['thumb']) && ($thumbfile = str_replace(basename($file), $imagedata['thumb'], $file)) && file_exists($thumbfile) ) 4354 return apply_filters( 'wp_get_attachment_thumb_file', $thumbfile, $post->ID ); 4353 4355 return false; 4354 4356 } 4355 4357
