Skip to content

Commit

Permalink
Warning when StCR + Comment Mail are both active. See: wpsharks/comme…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswsinc committed Jun 25, 2015
1 parent 3da9162 commit 463c692
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions comment-mail-pro/plugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,9 @@ public function stcr_check()
if(!class_exists('wp_subscribe_reloaded'))
return; // Nothing to do here.

if(!is_admin() || !empty($_REQUEST['action']))
return; // Stay quiet in this case.

$conflict = sprintf(__('<p style="font-size:120%%; font-weight:400; margin:0;"><strong>%1$s&trade;</strong> %2$s + <strong>StCR</strong> = Possible Conflict!</p>', $this->text_domain), esc_html($this->name), $this->utils_fs->inline_icon_svg());
$conflict .= '<p style="margin:0;">'.sprintf(__('<strong>WARNING (ACTION REQUIRED):</strong> Running %1$s&trade; while StCR (Subscribe to Comments Reloaded) is <em>also</em> an active WordPress plugin <strong>can cause problems</strong>; i.e., these two plugins do the same thing—%1$s being the newer of the two. Keep %1$s, but please deactivate the StCR plugin to get rid of this message.', $this->text_domain), esc_html($this->name)).'</p>';
$this->enqueue_error($conflict);
Expand Down

0 comments on commit 463c692

Please sign in to comment.