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

Minor changes #86

Merged
merged 4 commits into from
Jan 21, 2022
Merged

Minor changes #86

merged 4 commits into from
Jan 21, 2022

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.

@@ -177,7 +177,7 @@ function wpcf7cf_after_save($contact_form) {
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.

@@ -205,8 +205,6 @@ function wpcf7cf_input_field($slug, $args) {
$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