Skip to content
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

Forms blocked due to use of deprecated "is_html5_enabled" #36

Closed
Vinobe93 opened this issue Nov 28, 2024 · 1 comment · Fixed by #37
Closed

Forms blocked due to use of deprecated "is_html5_enabled" #36

Vinobe93 opened this issue Nov 28, 2024 · 1 comment · Fixed by #37

Comments

@Vinobe93
Copy link

Vinobe93 commented Nov 28, 2024

In the class "GF_Zero_Spam" in method "add_key_value" the function RGFormsModel::is_html5_enabled() is used.
Gforms throws an warning on this that the function is deprecated with no fallback.
image

I'm refering to this line:
image

If I change the function call to an hardcoded "true" (which is also the fallback for the deprecated function in gravityforms) the form is displayed again as it should.

Expected result: Not showing a php warning and showing the form

Edit: the issue only shows when define( 'WP_DEBUG_DISPLAY', true ); is set obviously, which is the case on our development environment. But it is a deprecated function nonetheless and should be removed.

@mrcasual
Copy link
Contributor

@Vinobe93, thank you for reporting the issue. It has been fixed in version 1.4.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants