Since version 2.5.5, I’ve been seeing PHP warnings on every page load. They start at gravityforms.php line 6486, which is part of the should_inject_hooks_js method. I’ve been getting around it by adding a return false like this
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
return false;
}
if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) {
return false;
}
if ( empty( $content ) ) {
return false;
}
return false;
So currently my addition is added to line 6483, and it stops the errors. I don’t need any of the Gravity Forms JavaScript, so this doesn’t cause any problems for me, but I’m concerned that it hasn’t been fixed in the updates since then. Is this a known issue?