royboy789 / gutenberg-object-plugin

Saves Gutenberg data as an object / array and allows you to access it via REST API
GNU General Public License v3.0
248 stars 17 forks source link

Conditionally load autoloader #9

Closed tomjn closed 6 years ago

tomjn commented 6 years ago

The autoloader is only present if composer install is ran directly in the plugin folder. If the plugin is pulled in as a dependency then the autoloader and vendor folder will be located elsewhere leading to a fatal error

Instead, only load vendor/autoload.php if it exists

royboy789 commented 6 years ago

conditionaled