elementor / wp2static

WordPress static site generator for security, performance and cost benefits
https://wp2static.com
The Unlicense
1.39k stars 258 forks source link

Update DetectVendorFiles.php #868

Closed dunklerfox closed 1 year ago

dunklerfox commented 2 years ago

I have no idea if this is the correct implementation for this. I have tested this code on a single deployment and it appears to be working correctly.

leonstafford commented 2 years ago

Thanks, @dunklerfox!

I think it'll just need an additional check around that code to determine if Divi is active on the site.

From this search, looks like ET_Builder_Library may be the class to check for existence?

https://github.com/search?q=class_exists+ET_&type=code

leonstafford commented 2 years ago

(so that this code doesn't run unnecessarily for users without Divi)

john-shaffer commented 2 years ago

@leonstafford I'm thinking about adding an advanced option with a list of dirs and turning this into a for loop over that list.