Changed behaviour since 1.4.3. / Bug empty img for articles without images.
-
has_post_thumbnail() returns true even when there really is no thumbnail available.
This results that the theme will output
get_the_post_thumbnail(get_the_ID(), ‘post-thumbnail’)
witch is just an empty space now:Here is the resulting code that I get for articles that don’t have an image in the post text or in the excert or as an featured article image:
<img src=”data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7″ style=”background:url(”) no-repeat center center;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;width:1400px;height:250px;” class=”attachment-post-thumbnail wp-post-image nelioefi” alt=”” />
- The topic ‘Changed behaviour since 1.4.3. / Bug empty img for articles without images.’ is closed to new replies.