Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function get_webmention_form_text( $post_id ) {
* @return string
*/
function get_default_webmention_form_text() {
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' );
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' );
}

/**
Expand Down
7 changes: 4 additions & 3 deletions templates/webmention-comment-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
do_action( 'webmention_comment_form_template_before' );
?>
<form id="webmention-form" action="<?php echo get_webmention_endpoint(); ?>" method="post">
<p>
<label for="webmention-source"><?php echo get_webmention_form_text( get_the_ID() ); ?></label>
<p id="webmention-source-description">
<?php echo get_webmention_form_text( get_the_ID() ); ?>
</p>
<p>
<input id="webmention-source" type="url" autocomplete="url" required pattern="^https?:\/\/(.*)" name="source" placeholder="<?php esc_attr_e( 'URL/Permalink of your article', 'webmention' ); ?>" />
<label for="webmention-source"><?php esc_attr_e( 'URL/Permalink of your article', 'webmention' ); ?></label>
<input id="webmention-source" type="url" autocomplete="url" required pattern="^https?:\/\/(.*)" name="source" aria-describedby="webmention-source-description" />
</p>
<p>
<input id="webmention-submit" type="submit" name="submit" value="<?php esc_attr_e( 'Ping me!', 'webmention' ); ?>" />
Expand Down