WebP Module fallback.js does not support REST API plain permalinks. #456
Labels
[Plugin] Modern Image Formats
Issues for the Modern Image Formats plugin (formerly WebP Uploads)
[Type] Bug
An existing feature is broken
Bug Description
On sites with plain permalinks (ie not using rewrite rules) the rest requests in fallback.js result in 404 File Not Found errors.
The cause of the error is that the rest_route always appends the fields portion of the querystring with a question mark, for plain permalinks an ampersand should be used.
Steps to reproduce
/index.php?rest_route=/wp/v2/media/?_jsonp=wpPerfLab.webpUploadsFallbackWebpImages&per_page=100&include=38
Screenshots
Additional Context
image.webp.enabled
set to false inabout:config
The text was updated successfully, but these errors were encountered: