@@ -362,17 +362,17 @@ function wpt_form_data_meta($post_id, $post) {
362362 // OK, we're authenticated: we need to find and save the data
363363 // We'll put it into an array to make it easier to loop though.
364364
365- $ $ form_meta ['_amount ' ] = $ _POST ['_amount ' ];
366- $ $ form_meta ['_paybtn ' ] = $ _POST ['_paybtn ' ];
367- $ $ form_meta ['_currency ' ] = $ _POST ['_currency ' ];
368- $ $ form_meta ['_successmsg ' ] = $ _POST ['_successmsg ' ];
369- $ $ form_meta ['_txncharge ' ] = $ _POST ['_txncharge ' ];
370- $ $ form_meta ['_loggedin ' ] = $ _POST ['_loggedin ' ];
371- $ $ form_meta ['_filelimit ' ] = $ _POST ['_filelimit ' ];
365+ $ form_meta ['_amount ' ] = $ _POST ['_amount ' ];
366+ $ form_meta ['_paybtn ' ] = $ _POST ['_paybtn ' ];
367+ $ form_meta ['_currency ' ] = $ _POST ['_currency ' ];
368+ $ form_meta ['_successmsg ' ] = $ _POST ['_successmsg ' ];
369+ $ form_meta ['_txncharge ' ] = $ _POST ['_txncharge ' ];
370+ $ form_meta ['_loggedin ' ] = $ _POST ['_loggedin ' ];
371+ $ form_meta ['_filelimit ' ] = $ _POST ['_filelimit ' ];
372372
373- // Add values of $$ form_meta as custom fields
373+ // Add values of $form_meta as custom fields
374374
375- foreach ($ form_meta as $ key => $ value ) { // Cycle through the $$ form_meta array!
375+ foreach ($ form_meta as $ key => $ value ) { // Cycle through the $form_meta array!
376376 if ( $ post ->post_type == 'revision ' ) return ; // Don't store custom data twice
377377 $ value = implode (', ' , (array )$ value ); // If $value is an array, make it a CSV (unlikely)
378378 if (get_post_meta ($ post ->ID , $ key , FALSE )) { // If the custom field already has a value
0 commit comments