Roots Bedrock support | WordPress.org

[ad_1]

Plugin Author
kubiq

(@kubiq)

Hello,

I can not see any reason why it should not work.

In older versions of this plugin was rewrite rule focused on uploads folder, then on wp-content but in a few latest releases it is simply applied for the whole web.

What exactly is your problem? Are you receiving some error?

Thanks for a quick response. Really appreciate it.

I have now pinpointed the issue.

You are right. The conversion functionality does work. Checked theme files and could see webp. Also can confirm that the plugin is loading webp on the front end as expected.

The issue (which led me to believe that the plugin might not work) is with converting existing images. It lists “wp-admin” and “wp-includes” only.

Essentially the actual uploads directory is not listed due to a different directory structure on bedrock.

Plugin Author
kubiq

(@kubiq)

Aha, yes, well, it’s disabled to go out of the root folder for the security reasons and I’m not sure if it’s good idea to enable something like this…

If you know which variables or functions can ensure code condition that it is bedrock installation and it’s safe to go 1 up, then maybe i can implement something like that later, but right now I have no time for such an investigation unfortunately.

Yes, I thought that might be the case actually. There is a reason why it was separated to begin with.

I am not aware of conditionals or functions currently, but I also think it might not even be worth exploring as I would much prefer security over “extra functionality”.

I will mark this as resolved because the core functionality actually does work. I guess, in this instance, it is more of a case of a choice – add an extra security layer or support existing image conversion.

Again – thank you for your support.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer