Skip to content

Commit

Permalink
Merge pull request #7 from caffeinalab/hotfix/is_plugin_active
Browse files Browse the repository at this point in the history
Hotfix/is plugin active
  • Loading branch information
progress44 authored Apr 11, 2020
2 parents 3fb5800 + b97cd38 commit 3f5f5b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/sink.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function setUploadDir($uploads)

public function isActive()
{
if (!\is_plugin_active($this->plugin_slug)) {
if (function_exists('is_plugin_active') && !\is_plugin_active($this->plugin_slug)) {
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions sink.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Sink
* Description: Sync media to S3 seamlessly
* Version: 1.0.4
* Version: 1.0.5
* Author: Caffeina
* Author URI: https://caffeina.com/
* Plugin URI: https://github.com/caffeinalab/sink
Expand All @@ -15,6 +15,6 @@

define('SINK_URL', plugin_dir_url(__FILE__));
define('SINK_PATH', plugin_dir_path(__FILE__));
define('SINK_VERSION', '1.0.4');
define('SINK_VERSION', '1.0.5');

add_action('plugins_loaded', array('Sink\Sink', 'init'));

0 comments on commit 3f5f5b4

Please sign in to comment.