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
280 stars 83 forks source link

WebP Issue #235

Closed PhillipHuynh closed 4 years ago

PhillipHuynh commented 4 years ago

Describe the bug

With the combination of EWWW, WP Rocket, and WPP, it seems like WPP is not serving the WebP versions correctly. Investigating the "wordpress-popular-posts" folder, I can see the WebP files are in there. However, on the front end side, it is trying to serve the WebP without the original image extension.

IE:

97544-featured-100x75.png.webp - Correct Filename 97544-featured-100x75.webp - Incorrect Filename <--- This one is being served on the frontend

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://www.provideocoalition.com/'
  2. Scroll down to 'Popular' widget
  3. See error

Expected behavior

The correct image should be displaying.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment:

cabrerahector commented 4 years ago

Hi @PhillipHuynh,

WordPress Popular Posts generates & retrieves images using WordPress' core functions (eg. wp_get_image_editor()) so I'm not sure if there's anything I can do to help here since these functions are out of the control of the plugin. Please get in touch with the team behind the EWWW plugin (which I assume it's responsible for generating the .webp images, I have never used it myself) and see what they have to say about the matter. Let me know if there's anything else I can do to help out.