Skip to content

Commit

Permalink
Allow the use of Yoast Premium
Browse files Browse the repository at this point in the history
Allow the use of Yoast Premium in the plugin activation check.
  • Loading branch information
joeblackburn committed Dec 4, 2015
1 parent 67210a7 commit baea685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yoast-acf-analysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function admin_init() {
}

// Yoast
if(!is_plugin_active('wordpress-seo/wp-seo.php')) {
if(!is_plugin_active('wordpress-seo/wp-seo.php') && !is_plugin_active('wordpress-seo-premium/wp-seo-premium.php')) {
add_action('admin_notices', array($this, 'require_yoast'));
$deactivate = true;
}
Expand Down Expand Up @@ -61,4 +61,4 @@ public function enqueue_scripts() {
}
}

new Yoast_ACF_Analysis();
new Yoast_ACF_Analysis();

0 comments on commit baea685

Please sign in to comment.