I noticed this difference in the html code of the thumbnail image immediately after the upload.
After upload, no feautured image selected (error)
<li tabindex="0" role="checkbox" aria-checked="true" class="attachment details selected save-ready ui-draggable ui-draggable-handle">
<div class="attachment-preview js--select-attachment type-image subtype-jpeg landscape">
<div class="thumbnail">
<div class="centered">
<img src="https://localhost:8888/wordpress/wp-content/uploads/2020/08/aereo-3-scaled-3-300x200.jpg" draggable="false" alt="">
</div>
</div>
</div>
<button type="button" class="check" tabindex="-1"><span class="media-modal-icon"></span><span class="screen-reader-text">Deseleziona</span></button>
</li>
After selecting the featured image (corrected):
<li tabindex="0" role="checkbox" aria-checked="true" class="attachment save-ready ui-draggable ui-draggable-handle selected details">
<div class="attachment-preview js--select-attachment type-image subtype-jpeg landscape">
<div class="thumbnail">
<div class="centered">
<img src="https://localhost:8888/wordpress/wp-content/uploads/2020/08/aereo-3-scaled-3-300x200.jpg" draggable="false" alt="">
</div>
</div>
</div>
<button type="button" class="check" tabindex="0"><span class="media-modal-icon"></span><span class="screen-reader-text">Deseleziona</span></button>
</li>
PS. I also tried to disable all plugins (via the Health Check & Troubleshooting plugin), but the problem persists.
PS 2. My WordPress version is WordPress 5.4.2 (last)
-
This reply was modified 4 years, 7 months ago by
marcorroma.