We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ad9104 commit 20cd664Copy full SHA for 20cd664
projects/packages/forms/src/contact-form/class-contact-form.php
@@ -2077,11 +2077,11 @@ public function process_submission() {
2077
);
2078
$footer_ip = null;
2079
if ( $comment_author_ip ) {
2080
- $comment_author_ip = $comment_author_ip . ' ' . $response->get_country_flag();
2081
- $footer_ip = sprintf(
+ $comment_author_ip_with_flag = $comment_author_ip . ( $response->get_country_flag() ? ' ' . $response->get_country_flag() : '' );
+ $footer_ip = sprintf(
2082
/* translators: Placeholder is the IP address of the person who submitted a form. */
2083
esc_html__( 'IP Address: %1$s', 'jetpack-forms' ),
2084
- $comment_author_ip
+ $comment_author_ip_with_flag
2085
) . '<br />';
2086
}
2087
0 commit comments