mailhide.php:258 Undefined variable: needed_capability
-
Undefined variable: needed_capability in wp-recaptcha/mailhide.php on line 258
This variable is not defined when the target checkbox “Show actual email addresses to Registered Users who can …” is left unticked.This fixed it
Add this in recaptcha/mailhide.php line 249:
$needed_capability = '';
Explanation: the $needed_capability was declared in the if statement, only when the condition was true. The variable needs to be declared in the mailhide_emails function context instead.
- The topic ‘mailhide.php:258 Undefined variable: needed_capability’ is closed to new replies.