mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-02 01:01:18 +03:00
Fix issue with fetching data in get_pledge_meta
when no submission has been POST'd
This commit is contained in:
parent
bbe3d1be84
commit
c614d63056
|
@ -213,7 +213,7 @@ function get_form_submission() {
|
||||||
|
|
||||||
$result = filter_input_array( INPUT_POST, $input_filters );
|
$result = filter_input_array( INPUT_POST, $input_filters );
|
||||||
if ( ! $result ) {
|
if ( ! $result ) {
|
||||||
return array_fill_keys( array_keys( $input_filters ), '' );
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
Loading…
Reference in a new issue