Skip to content

Commit

Permalink
fix(plugin): Fix autoloader conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Jan 16, 2021
1 parent f2e13ff commit 2bc0774
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Advanced Custom Fields: Editor Palette Field
* Plugin URI: https://github.com/log1x/acf-editor-palette
* Description: A Gutenberg-like editor palette color picker field for Advanced Custom Fields.
* Version: 1.0.4
* Version: 1.0.5
* Author: Brandon Nifong
* Author URI: https://github.com/log1x
*/
Expand Down Expand Up @@ -62,9 +62,9 @@ public function __invoke()
$this->uri = plugin_dir_url(__FILE__) . $this->path;
$this->path = plugin_dir_path(__FILE__) . $this->path;

require_once file_exists($composer = __DIR__ . '/vendor/autoload.php') ?
$composer :
__DIR__ . '/dist/autoload.php';
if (file_exists($composer = __DIR__ . '/vendor/autoload.php')) {
require_once $composer;
}

$this->register();
$this->registerAdminColumns();
Expand Down

0 comments on commit 2bc0774

Please sign in to comment.