How does WP determine if a thumbnail exists?
-
Quick question: How does the Media Library know when there is a thumbnail attached to an uploaded image? In other words, how does WP determine whether to show the thumbnail or the default.jpg for an image?
I don’t see a flag or otherwise for thumbnails in the posts table. In edit-attachment-rows.php (which is the Media Library uploads listing as far as I can tell), the wp_get_attachment_link() is called. I’ve been trying to trace this through to its conclusion, but I haven’t been able to pinpoint that piece of logic that decides to show the thumbnail or not. At first I assumed it was simply checking for the ‘-150×150’ appendage, but now I’m not so sure.
Any and all suggestions are appreciated. Thanks.
- The topic ‘How does WP determine if a thumbnail exists?’ is closed to new replies.