Plugin Reviews


Simply enables WordPress shortcode for easily letting you camouflage an email address, hiding it from crawling spiders and bots.

1 review
Average Rating
0 out of 5 stars
PHP error
By , for WP 3.4.2

Nice little plugin, but it generates a PHP error if you have error reporting enabled in your wp-config file. The error is an undefined index, which occurs unless when you use the shortcode you include both "mail" and "mailto" arguments (with one of them blank.)

You can fix this easily enough by rewriting the plugin to use "isset" to check for the existence of each index before trying to reference it, like so:

[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

function wk_email_antibot_shortcode($args)
  if (isset($args["mail"]))
    echo antispambot($args["mail"]);
  if (isset($args["mailto"]))
    echo '<a>'.antispambot($args["mailto"]).'</a>';
  $output_string = ob_get_contents();
  return $output_string;
add_shortcode('antibot', 'wk_email_antibot_shortcode');

You must log in to submit a review. You can also log in or register using the form near the top of this page.