Fix warnings on new pledge form

This commit is contained in:
Kelly Dwan 2019-11-25 16:49:11 -05:00
parent a58b5e958c
commit a794829c4d
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
2 changed files with 6 additions and 1 deletions

View file

@ -459,6 +459,9 @@ function get_pledge_meta( $pledge_id = 0, $subset = '' ) {
// Get POST'd submission, if it exists.
$submission = PledgeForm\get_form_submission();
if ( $submission['empty_post'] ) {
$submission = array();
}
foreach ( $keys as $key => $config ) {
if ( isset( $submission[ $key ] ) ) {