Skip to content

Commit

Permalink
Fixed conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas von Mateffy committed Aug 10, 2017
2 parents 4f7613d + a8ed12e commit 2dd7c4a
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions admin/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,23 @@ function ymme_admin_menu() {
}

function ymme_editor_page() {
include_once dirname(WP_YMME).'/admin/views/editor.php';
if (is_plugin_active('wordpress-seo/wp-seo.php'))
include_once dirname(WP_YMME).'/admin/views/editor.php';
else
ymme_yoast_missing_notice();
}

function ymme_admin_dependencies($hook) {
if($hook !== 'tools_page_ymme/editor') {
return;
}


}

function ymme_yoast_missing_notice() {
?>
<div class="notice notice-error" style="margin-left: 2px;">
<h3>The Yoast SEO plugin is not installed/active.</h3>
<p>To use <code>Mass Meta Editor</code>, you need to install the Yoast SEO plugin.</p>
</div>
<?php
}

0 comments on commit 2dd7c4a

Please sign in to comment.