Version Description
- Fix bug that you can not reply comments from the dashboard, if the CAPTCHA is enabled
- Fix bug that the login page is displayed in '/wp-login' even if the Rename Login is enabled
Download this release
Release Info
Developer | jp-secure |
Plugin | SiteGuard WP Plugin |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- classes/siteguard-captcha.php +3 -0
- classes/siteguard-rename-login.php +1 -1
- readme.txt +5 -2
- siteguard.php +2 -2
classes/siteguard-captcha.php
CHANGED
@@ -213,6 +213,9 @@ class SiteGuard_CAPTCHA extends SiteGuard_Base {
|
|
213 |
return $new_errors;
|
214 |
}
|
215 |
function handler_process_comment_post( $comment ) {
|
|
|
|
|
|
|
216 |
if ( array_key_exists( 'siteguard_captcha', $_POST ) && array_key_exists( 'siteguard_captcha_prefix', $_POST ) ) {
|
217 |
if ( ! empty( $_POST['siteguard_captcha'] ) ) {
|
218 |
if ( $this->captcha->check( $_POST['siteguard_captcha_prefix'], $_POST['siteguard_captcha'] ) ) {
|
213 |
return $new_errors;
|
214 |
}
|
215 |
function handler_process_comment_post( $comment ) {
|
216 |
+
if ( is_admin() ) {
|
217 |
+
return $comment;
|
218 |
+
}
|
219 |
if ( array_key_exists( 'siteguard_captcha', $_POST ) && array_key_exists( 'siteguard_captcha_prefix', $_POST ) ) {
|
220 |
if ( ! empty( $_POST['siteguard_captcha'] ) ) {
|
221 |
if ( $this->captcha->check( $_POST['siteguard_captcha_prefix'], $_POST['siteguard_captcha'] ) ) {
|
classes/siteguard-rename-login.php
CHANGED
@@ -57,7 +57,7 @@ class SiteGuard_RenameLogin extends SiteGuard_Base {
|
|
57 |
} else {
|
58 |
$link = '';
|
59 |
}
|
60 |
-
if ( false !== strpos( $link, 'wp-login
|
61 |
$referer = wp_get_referer( );
|
62 |
if ( false === strpos( $referer, $new_login_page ) ) {
|
63 |
$this->set_404( );
|
57 |
} else {
|
58 |
$link = '';
|
59 |
}
|
60 |
+
if ( false !== strpos( $link, 'wp-login' ) ) {
|
61 |
$referer = wp_get_referer( );
|
62 |
if ( false === strpos( $referer, $new_login_page ) ) {
|
63 |
$this->set_404( );
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: jp-secure
|
|
3 |
Donate link: -
|
4 |
Tags: security, waf, brute force, password list, login lock, login alert, captcha, pingback, fail once
|
5 |
Requires at least: 3.9
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -102,6 +102,9 @@ If you have created your own language pack, or have an update of an existing one
|
|
102 |
[Japanese Page](http://www.jp-secure.com/cont/products/siteguard_wp_plugin/faq.html)
|
103 |
|
104 |
== Changelog ==
|
|
|
|
|
|
|
105 |
= 1.2.2 =
|
106 |
* Fix bug that XML-RPC access which doesn't need login is recorded as the nameless login history
|
107 |
* Disabling the all functions when installed in multisite environment
|
3 |
Donate link: -
|
4 |
Tags: security, waf, brute force, password list, login lock, login alert, captcha, pingback, fail once
|
5 |
Requires at least: 3.9
|
6 |
+
Tested up to: 4.3
|
7 |
+
Stable tag: 1.2.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
102 |
[Japanese Page](http://www.jp-secure.com/cont/products/siteguard_wp_plugin/faq.html)
|
103 |
|
104 |
== Changelog ==
|
105 |
+
= 1.2.3 =
|
106 |
+
* Fix bug that you can not reply comments from the dashboard, if the CAPTCHA is enabled
|
107 |
+
* Fix bug that the login page is displayed in '/wp-login' even if the Rename Login is enabled
|
108 |
= 1.2.2 =
|
109 |
* Fix bug that XML-RPC access which doesn't need login is recorded as the nameless login history
|
110 |
* Disabling the all functions when installed in multisite environment
|
siteguard.php
CHANGED
@@ -7,7 +7,7 @@ Author: JP-Secure
|
|
7 |
Author URI: http://www.jp-secure.com/eng/
|
8 |
Text Domain: siteguard
|
9 |
Domain Path: /languages/
|
10 |
-
Version: 1.2.
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014 JP-Secure Inc
|
@@ -30,7 +30,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
30 |
exit;
|
31 |
}
|
32 |
|
33 |
-
define( 'SITEGUARD_VERSION', '1.2.
|
34 |
|
35 |
define( 'SITEGUARD_PATH', plugin_dir_path( __FILE__ ) );
|
36 |
define( 'SITEGUARD_URL_PATH', plugin_dir_url( __FILE__ ) );
|
7 |
Author URI: http://www.jp-secure.com/eng/
|
8 |
Text Domain: siteguard
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 1.2.3
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014 JP-Secure Inc
|
30 |
exit;
|
31 |
}
|
32 |
|
33 |
+
define( 'SITEGUARD_VERSION', '1.2.3' );
|
34 |
|
35 |
define( 'SITEGUARD_PATH', plugin_dir_path( __FILE__ ) );
|
36 |
define( 'SITEGUARD_URL_PATH', plugin_dir_url( __FILE__ ) );
|