Archived topic
moving to v2.x and need to get a couple of things straight...
3 replies · Started by Russell on February 10, 2018
In chronologically order here is what happened
1) I tried installing the "enlighten" plugin in my localhost development environment because the jetpack markdown is causing me fits the trying to get a markdown list with multiple-paragraph to work right » no, jetpack is not using standard, easy to comprehend markdown..
2) any way, in the course of things, I got the wordpress white screen of death
3) I removed all the plugins and added them all back just fine
4) unit I ran into:
a) "DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks. Learn how"
- yes I use themes security, so that may be the reason this is showing
b) regardless how do I react to this warning » I see some info in the gp support forums, but I still don't understand...
5) I then discovered:
a) gp v2.0 handled hooks differently so I checked and found:
b)find the following code in GP Hooks' wp-footer area.
<script>
jQuery(function($) {
window.onhashchange = function() {
var hash = location.hash;
$(hash).parent().trigger("click");
};
$( document ).ready(function() {
window.onhashchange();
});
});
</script>
c: what does this code (that I know I added and am now can't remember what is for), do and what do I do with it?
Hi there,
The PHP is just a warning. If you aren't using PHP in hooks, then you can disable it with the instruction here: https://docs.generatepress.com/article/disallow-php-execution/
As for the code, here it is your post before:
https://generatepress.com/forums/topic/direct-links-to-faqs/#post-412044
Many thanks!
No problem.