Skip to content

Commit ec294e4

Browse files
author
Antti Kuosmanen
committed
Fix email copy included fields
1 parent 4e3134c commit ec294e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inc/wplf-form-actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function wplf_send_email_copy( $return ) {
2020
$subject = wp_sprintf( __('New submission from %s', 'wp-libre-form'), $referrer );
2121
$content = wp_sprintf( __('Form "%s" (ID %d) was submitted with values below: ', 'wp-libre-form'), $form_title, $form_id ) . "\n\n";
2222
foreach( $_POST as $key => $value ) {
23-
if( '_' !== $key[0] ) {
23+
if( '_' === $key[0] ) {
2424
continue;
2525
}
2626
$content .= esc_html( $key ) . ': ' . esc_html( print_r( $value, true ) ) . "\n";

0 commit comments

Comments
 (0)