WPIntell

Source evidence

PHP error

wk-email-antibot · review · 2012-11-02T18:38:00+00:00

complaintsentiment
highseverity
0.91relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 34 rows with source links

17.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

review
David R. Woolley unresolved
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) { ob_start(); if (isset($args["mail"])) { echo antispambot($args["mail"]); } if (isset($args["mailto"])) { echo '<a>'.antispambot($args["mailto"]).'</a>'; } $output_string = ob_get_contents(); ob_end_clean(); return $output_string; }; add_shortcode('antibot', 'wk_email_antibot_shortcode');

Comments

0 shown

No comments were stored for this source.