Skip to content

Commit 20cd664

Browse files
committed
Update variable name
1 parent 1ad9104 commit 20cd664

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/packages/forms/src/contact-form/class-contact-form.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,11 +2077,11 @@ public function process_submission() {
20772077
);
20782078
$footer_ip = null;
20792079
if ( $comment_author_ip ) {
2080-
$comment_author_ip = $comment_author_ip . ' ' . $response->get_country_flag();
2081-
$footer_ip = sprintf(
2080+
$comment_author_ip_with_flag = $comment_author_ip . ( $response->get_country_flag() ? ' ' . $response->get_country_flag() : '' );
2081+
$footer_ip = sprintf(
20822082
/* translators: Placeholder is the IP address of the person who submitted a form. */
20832083
esc_html__( 'IP Address: %1$s', 'jetpack-forms' ),
2084-
$comment_author_ip
2084+
$comment_author_ip_with_flag
20852085
) . '<br />';
20862086
}
20872087

0 commit comments

Comments
 (0)