-
Notifications
You must be signed in to change notification settings - Fork 18
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
Minor changes #86
Conversation
Variable $_POST in isset() always exists and is not nullable.
getConditions() is checking array or not.
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? |
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'] ) ) { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
No description provided.