cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
279 stars 83 forks source link

wpp_thumbnail_alt_attribute runs only when a post thumbnail is found #270

Closed cabrerahector closed 3 years ago

cabrerahector commented 4 years ago

Describe the bug

As the title says, the wpp_thumbnail_alt_attribute filter hook runs only when the post has a thumbnail. For posts that don't the plugin returns a No Thumbnail image with an empty ALT attribute, and users cannot assign a fallback ALT attribute (eg. No Thumbnail) when this happens due to the issue described before.

Expected behavior

The filter hook should run for all images, not just for cached/new thumbnails.

Environment: