Skip to content

Conversation

@arshidkv12
Copy link
Contributor

No description provided.

Variable $_POST in isset() always exists and is not nullable.
getConditions() is checking array or not.
@pwkip
Copy link
Owner

pwkip commented Sep 4, 2021

Thanks for this PR @arshidkv12 . I see you did a bit of cleanup, but could you explain in a couple of words what changes you made, and why? Did the code trigger any notices/errors before these changes?

@arshidkv12
Copy link
Contributor Author

Please check related comments.

function wpcf7cf_save_contact_form( $contact_form )
{

if ( ! isset( $_POST ) || empty( $_POST ) || ! isset( $_POST['wpcf7cf-settings-text'] ) ) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to keep this for usage in end to end tests and when calling methods directly from command line.

$args = wp_parse_args( $args, $defaults );
extract($args);

$label; $description; $default; $label_editable;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keeping this as a helper for development.

@pwkip pwkip merged commit 8e59499 into pwkip:master Jan 21, 2022
pwkip added a commit that referenced this pull request Jan 27, 2022
* Tested up to wp 5.9
* Scroll success message into view after successful form submission. [GH Issue 90](#90)
* Small changes [GH PR 86](#86)
* Make 'change' event bubble up [GH PR 88](#88)
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 this pull request may close these issues.

2 participants