Skip to content

Commit 8bbc134

Browse files
authored
Merge pull request #521 from MatzeKitt/comment-form-template-improvements
Comment form template improvements
2 parents 8e7fd0b + 4be7a93 commit 8bbc134

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

includes/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function get_webmention_form_text( $post_id ) {
121121
* @return string
122122
*/
123123
function get_default_webmention_form_text() {
124-
return __( 'To respond on your own website, enter the URL of your response which should contain a link to this post\'s permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post\'s URL again. (<a href="https://indieweb.org/webmention">Learn More</a>)', 'webmention' );
124+
return __( 'To respond on your own website, enter the URL of your response which should contain a link to this post\'s permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post\'s URL again. (<a href="https://indieweb.org/webmention">Find out more about Webmentions.</a>)', 'webmention' );
125125
}
126126

127127
/**

templates/webmention-comment-form.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
do_action( 'webmention_comment_form_template_before' );
66
?>
77
<form id="webmention-form" action="<?php echo get_webmention_endpoint(); ?>" method="post">
8-
<p>
9-
<label for="webmention-source"><?php echo get_webmention_form_text( get_the_ID() ); ?></label>
8+
<p id="webmention-source-description">
9+
<?php echo get_webmention_form_text( get_the_ID() ); ?>
1010
</p>
1111
<p>
12-
<input id="webmention-source" type="url" autocomplete="url" required pattern="^https?:\/\/(.*)" name="source" placeholder="<?php esc_attr_e( 'URL/Permalink of your article', 'webmention' ); ?>" />
12+
<label for="webmention-source"><?php esc_attr_e( 'URL/Permalink of your article', 'webmention' ); ?></label>
13+
<input id="webmention-source" type="url" autocomplete="url" required pattern="^https?:\/\/(.*)" name="source" aria-describedby="webmention-source-description" />
1314
</p>
1415
<p>
1516
<input id="webmention-submit" type="submit" name="submit" value="<?php esc_attr_e( 'Ping me!', 'webmention' ); ?>" />

0 commit comments

Comments
 (0)