mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-20 10:03:43 +03:00
Return empty array if no values are $_POST'ed to the form
Fixes an issue with tests + null values in logs
This commit is contained in:
parent
68d5c53c95
commit
a2a88c56a4
|
@ -354,7 +354,12 @@ function get_form_submission() {
|
|||
)
|
||||
);
|
||||
|
||||
return filter_input_array( INPUT_POST, $input_filters );
|
||||
$result = filter_input_array( INPUT_POST, $input_filters );
|
||||
if ( ! $result ) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue