Skip to content

Commit

Permalink
Title on the spam honeypot field
Browse files Browse the repository at this point in the history
Per accessibility guidelines, this input should have a title or a label
to indicate what it's for. Fixes #3260
  • Loading branch information
singerb authored and eliorivero committed Feb 10, 2017
1 parent 7cc8c86 commit 3afd358
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/sharedaddy/sharing-sources.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@ public function display_footer() {
<input type="email" name="source_email" id="source_email" value="" />

<?php endif; ?>
<input type="text" id="jetpack-source_f_name" name="source_f_name" class="input" value="" size="25" autocomplete="off" />
<input type="text" id="jetpack-source_f_name" name="source_f_name" class="input" value="" size="25" autocomplete="off" title="This field is for validation and should not be changed" />
<script>jQuery( document ).ready( function(){ document.getElementById('jetpack-source_f_name').value = '' });</script>
<?php
/**
* Fires when the Email sharing dialog is loaded.
Expand Down

0 comments on commit 3afd358

Please sign in to comment.