wp2static icon indicating copy to clipboard operation
wp2static copied to clipboard

Update DetectVendorFiles.php

Open dunklerfox opened this issue 3 years ago • 3 comments

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.

dunklerfox avatar May 10 '22 20:05 dunklerfox

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 avatar May 11 '22 09:05 leonstafford

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

leonstafford avatar May 11 '22 09:05 leonstafford

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

john-shaffer avatar May 11 '22 12:05 john-shaffer