Skip to content

[Bug] Convert::getDestination returns incorrect destination in multisite #612

@tcharbonnier-gp-aviva

Description

@tcharbonnier-gp-aviva

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions