-
-
Notifications
You must be signed in to change notification settings - Fork 66
[Bug] Convert::getDestination returns incorrect destination in multisite #612
Copy link
Copy link
Open
Description
Hello,
I discovered the function Convert::getDestination doesn't return the correct WEBP path for an image path when WordPress is setup in multisite mode.
If I use the filename /home/test/public_html/wp-content/uploads/sites/4/2024/12/14195972_10153736783536286_2796225845147856050_o.jpg, this function will return /home/test/public_html/wp-content/webp-express/webp-images/uploads/2024/12/14195972_10153736783536286_2796225845147856050_o.jpg.webp which is incorrect because it should be /home/test/public_html/wp-content/webp-express/webp-images/uploads/sites/4/2024/12/14195972_10153736783536286_2796225845147856050_o.jpg.webp.
The difference is the sites/(site_id) part which is missing in the current function return value.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels