Forcefully executing wp_footer() – not compatible with other plugins
-
Hi,
We’re the developers of the Shield Security plugin and we have a couple of dynamically generated pages – namely our setup and scanner wizards.
Unfortunately we’ve become aware of issues with the wizards and it’s been narrowed down to your plugin.
We dug into it and it seems you’re incorrectly calling
wp_footer()
.
Here is the codex:
https://codex.www.ads-software.com/Function_Reference/wp_footerQuote:
Put this template tag immediately before </body> tag in a theme template
NGG is not a theme. It’s a plugin. It shouldn’t be firing
wp_footer()
.I see you run a check to ensure it’s a “valid request”. Your extensive IF/ELSE block doesn’t take into consideration that 1,000,000 other plugins might do things that you’re never going to be aware of.
You don’t, fortunately, get to decide who runs wp_footer() – the theme does that.
So, please remove your call to wp_footer() in your plugin. It’s breaking our stuff, which is adhering closely to the WordPress codex/coding guidelines.
wp_footer()
should be called by themes, not by a plugin.If you need to insert your custom footer stuff, please do so in a way that is unlikely to break other plugins who don’t need or correctly function with forceful calls to
wp_footer()
.This says nothing of your forceful “jquery fix” code which is part of what’s upsetting things. You feel it’s okay to force jquery on everything because your plugin uses it. Also not playing fair.
Your cooperation is much appreciated.
- The topic ‘Forcefully executing wp_footer() – not compatible with other plugins’ is closed to new replies.