Skip to content

Commit

Permalink
Fix bedrock compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
joppuyo committed Sep 2, 2018
1 parent af073af commit cac0c68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vips-image-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
exit();
}

include 'vendor/autoload.php';
// Check if we are using local Composer
if (file_exists(__DIR__ . '/vendor')) {
require 'vendor/autoload.php';
}
include 'class-image-editor-vips.php';

add_action('admin_notices', function() {
Expand Down

0 comments on commit cac0c68

Please sign in to comment.