Skip to content

Conversation

@timiwahalahti
Copy link
Member

Let's try this PR again with different branch.

As discussed in #50, this implements quite simple fallback to handler when submitting form without javascript. It can be turned on with filter.

Because some terms are reserved for WordPress core, this PR also implements check for those in fallback mode and shows error when using those terms as input names.

After successful form handling user is redirected to referrer page and thank you message is shown instead of form. When validation contains errors, message from validator is shown below form the same way as with javascript. Only downside is that inputs are cleared :/ But I think we can accept that, because browsers supports input checks quite widely. Can we?

Needs a bit more testing, updates to README and opinion about success/error handling.

@anttiviljami
Copy link
Collaborator

@timiwahalahti need help with this? codesniffer just doesn't like your tabs. :)

@k1sul1
Copy link
Member

k1sul1 commented Feb 20, 2018

@timiwahalahti got any time to fix this? Could be an useful feature for 1.5 😉

phpcbf should fix any tabs for you: ./vendor/bin/phpcbf --standard=./phpcs.xml .

@timiwahalahti timiwahalahti added this to the 1.5.0 milestone Feb 20, 2018
@timiwahalahti
Copy link
Member Author

I'll milestone this to 1.5 and fix this week.

@timiwahalahti
Copy link
Member Author

I'll work with this next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants