-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safe-email shortcode no longer working? #75
Comments
The Inspector will show it as plain text, but "view source" should show it obfuscated. It doesn't appear to be obfuscated on your site though. It is working on my test site with the shortcode:
|
Thanks so much for confirming it does work on your end @rhukster. I just tested with my Open Publishing Space and it is not obfuscating there either. I will try to dig deeper to see if it is something those two skeletons share (BTW, both themes have their own custom shortcodes, but I do not see that a factor). ps - I've justed tested using the standard Quark theme and same result, will continuing digging🙂 |
Hi @rhukster , I think I've tracked down the issue at least in one case. With my Bootstrap4 Open Matter the External Links Plugin is a dependency and when this Plugin is Enabled the safe-mail shortcode does not seem to work. Once it is disabled it works, and also if you set the External Links Plugin However, for some reason in my Quark Open Publishing theme the above alone does not get the safe-mail shortcode work - I also need to disable the Image Captions plugin... any ideas? Thanks very much, |
I will install imageCaptions in parallel and test. |
OK, i can confirm that with image-captions a similar issue occurs.. It's basically because those plugins are doing manipulation in the same event as shortcode-core, and shortcode-core is running first, and obfuscating the email correctly, but when the other plugins do their thing, that encoded HTML is automatically decoded back to normal. You were on the right track, but rather than making the external links plugin run earlier, i'm going to ensure the shortcode-core plugin runs later (ie, -10 order), this way it should always run last after other plugins that use the same event. |
Thanks very much @rhukster, it's great you were able to replicate the issue! Your solution sounds perfect👍Thank you. |
and released |
Works perfectly, thanks again Andy! |
In the past I've used the Safe-email shortcode and I thought when I first checked the resulting html via "view-source" the email address info was obfuscated. I've just started to use the shortcode again (after I recommended it to another educator for their course site) but I seem to have the email address in plain text:
Here is the shortcode syntax I am using:
[safe-email autolink="true" icon="envelope"][email protected][/safe-email]
Am I doing something wrong or is this an issue with the Plugin?
Thanks very much,
Paul
ps - here is a live site with an example, please see the sidebar https://paulhibbitts.net/cmpt-363/193/home
The text was updated successfully, but these errors were encountered: