The theme is the reason. The output of this HTML attribute is incorrectly stored there.
The specific reason:
https://themes.trac.www.ads-software.com/browser/mission-news/1.56/inc/comments.php#L59
The attribute is declared here. In the output below in line 72, this attribute is masked with esc_html()
, resulting in the incorrect output in the frontend.
I see 3 possible solutions for you:
a) You contact their support and ask them to adapt the programming: https://www.ads-software.com/support/theme/mission-news/
b) You remove the output of the fields via the theme and use the WordPress standards again. To do this, you must store the following code in your child theme or via a code snippet plugin:
remove_filter( 'comment_form_default_fields', 'ct_mission_news_update_fields' );
c) You overlay the problematic function with the following customised programming using a child theme or code snippet plugin:
function ct_mission_news_update_fields( $fields ) {
$commenter = wp_get_current_commenter();
$req = get_option( 'require_name_email' );
$label = $req ? '*' : ' ' . esc_html__( '(optional)', 'mission-news' );
$aria_req = $req ? 'true' : 'false';
$fields['author'] =
'<p class="comment-form-author">
<label for="author">' . esc_html__( "Name", "mission-news" ) . esc_html( $label ) . '</label>
<input id="author" name="author" type="text" placeholder="' . esc_attr__( "Jane Doe", "mission-news" ) . '" value="' . esc_attr( $commenter['comment_author'] ) .
'" size="30" aria-required="' . esc_attr( $aria_req ) . '" />
</p>';
$fields['email'] =
'<p class="comment-form-email">
<label for="email">' . esc_html__( "Email", "mission-news" ) . esc_html( $label ) . '</label>
<input id="email" name="email" type="email" placeholder="' . esc_attr__( "[email protected]", "mission-news" ) . '" value="' . esc_attr( $commenter['comment_author_email'] ) .
'" size="30" aria-required="' . esc_attr( $aria_req ) . '" />
</p>';
$fields['url'] =
'<p class="comment-form-url">
<label for="url">' . esc_html__( "Website", "mission-news" ) . '</label>
<input id="url" name="url" type="url" placeholder="https://google.com" value="' . esc_attr( $commenter['comment_author_url'] ) .
'" size="30" />
</p>';
return $fields;
}