eeb_mailto() ignores method saved in site config
-
Repro steps:
1. In the WP plugin config, set the “method” to one of:
* automatically the best method (including javascript)
* automatically the best method (excluding javascript)
* a strong method that replaces all emails with a “*protection text*”.`2. In a PHP file somewhere, call
echo eeb_mailto('[email protected]')
Expected results:
Email address is obfuscated using the configuration saved in the site config.Actual results:
Email address is always HTML-encoded only (no Javascript).Reason:
Intemplate-tags.php
, thefunction eeb_mailto
switches on the$method
parameter. If this parameter is not present, it defaults to HTML encoding. It doesn’t ever try to look at what is saved in the site config.I am not sure if this is a supported use case; readme.txt suggests that eeb_mailto() is intended for the end user to use, and if so, this is surprising behavior to me.
- The topic ‘eeb_mailto() ignores method saved in site config’ is closed to new replies.