mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 18:05:45 +03:00
Fix warnings on new pledge form
This commit is contained in:
parent
a58b5e958c
commit
a794829c4d
2 changed files with 6 additions and 1 deletions
|
@ -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 ] ) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue