Skip to content

Commit

Permalink
Improve accessibility - assign label to the year input
Browse files Browse the repository at this point in the history
  • Loading branch information
kudlav committed Jul 2, 2021
1 parent f213d58 commit 17e5570
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions anti-spam.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Anti-spam Reloaded
Plugin URI: http://wordpress.org/plugins/anti-spam-reloaded/
Description: No spam in comments. No captcha.
Version: 6.4
Version: 6.5
Author: kudlav, webvitaly
Text Domain: anti-spam-reloaded
Author URI: https://kudlav.github.io/
Expand Down Expand Up @@ -46,11 +46,11 @@ function antispamrel_form_part() {
<!-- Anti-spam Reloaded plugin wordpress.org/plugins/anti-spam-reloaded/ -->
<p class="antispamrel-group" style="clear: both;">
<label>' . /*translators:1:invisible text will be inserted here*/
esc_html__('Current ye%s@r', 'anti-spam-reloaded') .
'<span class="required">*</span>
esc_html__('Current ye%s@r', 'anti-spam-reloaded') .
'<span class="required">*</span>
<input type="text" name="antspmrl-q" class="antispamrel-control-q" value="' . rand(0, 99) . '" autocomplete="off" />
</label>
<input type="hidden" name="antspmrl-a" class="antispamrel-control-a" value="' . date('Y') . '" />
<input type="text" name="antspmrl-q" class="antispamrel-control-q" value="' . rand(0, 99) . '" autocomplete="off" />
</p>
<p class="antispamrel-group" style="display: none;">
<label>' . esc_html__('Leave this field empty', 'anti-spam-reloaded') . '</label>
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: kudlav, webvitaly
Tags: spam, spammer, comment, comments, comment-spam, antispam, anti-spam, block-spam, spam-free, spambot, spam-bot, bot
Requires at least: 3.3
Tested up to: 5.7
Stable tag: 6.4
Stable tag: 6.5
Requires PHP: 5.6
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.html
Expand Down Expand Up @@ -52,7 +52,7 @@ Anti-spam Reloaded plugin works with disabled JavaScript. Users with disabled Ja

Server compatibility:

* Wordpress 3.3 - 5.6
* Wordpress 3.3 - 5.7
* PHP 5.6 - 8.0
* Doesn't use jQuery

Expand Down Expand Up @@ -95,6 +95,9 @@ If the spammer will fill this trap-field with anything - the comment will be blo

== Changelog ==

= 6.5 - 2021-07-02 =
* Improve accessibility - assign label to the year input

= 6.4 - 2020-08-12 =
* Bugfix: JavaScript wasn't on some pages invoked (use DOMContentLoaded listener on document again)

Expand Down

0 comments on commit 17e5570

Please sign in to comment.