WebDevStudios / oops-wp

A collection of abstract classes, interfaces, and traits to promote object-oriented programming practices in WordPress.
57 stars 9 forks source link

Wrap example require_once in file_exists() check #29

Closed salcode closed 4 years ago

salcode commented 4 years ago

If the plugin is being loaded as a dependency of something larger (e.g. the project is loading plugins via Composer), the vendor directory may not be local to this plugin. We don't want to throw a fatal error if this is the case, so we check for the existance of the file first.

Fixes #28

salcode commented 4 years ago

This PR was made against master instead of develop, which why I've closed it and replaced it with #30