From c614d63056bd727fee1eeae545d60c3e20c147ef Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Thu, 21 Nov 2019 16:42:59 -0500 Subject: [PATCH] Fix issue with fetching data in `get_pledge_meta` when no submission has been POST'd --- plugins/wporg-5ftf/includes/pledge-form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wporg-5ftf/includes/pledge-form.php b/plugins/wporg-5ftf/includes/pledge-form.php index 9fd1170..7804799 100755 --- a/plugins/wporg-5ftf/includes/pledge-form.php +++ b/plugins/wporg-5ftf/includes/pledge-form.php @@ -213,7 +213,7 @@ function get_form_submission() { $result = filter_input_array( INPUT_POST, $input_filters ); if ( ! $result ) { - return array_fill_keys( array_keys( $input_filters ), '' ); + return []; } return $result;