Version Description
- Fixed URL filters.
Download this release
Release Info
Developer | avryl |
Plugin | Rename wp-login.php |
Version | 2.2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2.2 to 2.2.3
- readme.md +5 -1
- readme.txt +5 -1
- rename-wp-login.php +22 -4
readme.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
**Tags:** rename, login, wp-login, wp-login.php, brute force attacks, custom login url, security
|
5 |
**Requires at least:** 3.8
|
6 |
**Tested up to:** 3.8.1
|
7 |
-
**Stable tag:** 2.2.
|
8 |
**License:** GPLv2 or later
|
9 |
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -55,6 +55,10 @@ Either go to your MySQL database and look for the value of `rwl_page` in the opt
|
|
55 |
|
56 |
## Changelog
|
57 |
|
|
|
|
|
|
|
|
|
58 |
### 2.2
|
59 |
|
60 |
* Fixed issue where requests redirect to the new login page.
|
4 |
**Tags:** rename, login, wp-login, wp-login.php, brute force attacks, custom login url, security
|
5 |
**Requires at least:** 3.8
|
6 |
**Tested up to:** 3.8.1
|
7 |
+
**Stable tag:** 2.2.3
|
8 |
**License:** GPLv2 or later
|
9 |
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
55 |
|
56 |
## Changelog
|
57 |
|
58 |
+
### 2.2.3
|
59 |
+
|
60 |
+
* Fixed URL filters.
|
61 |
+
|
62 |
### 2.2
|
63 |
|
64 |
* Fixed issue where requests redirect to the new login page.
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
5 |
Tags: rename, login, wp-login, wp-login.php, brute force attacks, custom login url, security
|
6 |
Requires at least: 3.8
|
7 |
Tested up to: 3.8.1
|
8 |
-
Stable tag: 2.2.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -60,6 +60,10 @@ Either go to your MySQL database and look for the value of `rwl_page` in the opt
|
|
60 |
|
61 |
== Changelog ==
|
62 |
|
|
|
|
|
|
|
|
|
63 |
= 2.2 =
|
64 |
|
65 |
* Fixed issue where requests redirect to the new login page.
|
5 |
Tags: rename, login, wp-login, wp-login.php, brute force attacks, custom login url, security
|
6 |
Requires at least: 3.8
|
7 |
Tested up to: 3.8.1
|
8 |
+
Stable tag: 2.2.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
60 |
|
61 |
== Changelog ==
|
62 |
|
63 |
+
= 2.2.3 =
|
64 |
+
|
65 |
+
* Fixed URL filters.
|
66 |
+
|
67 |
= 2.2 =
|
68 |
|
69 |
* Fixed issue where requests redirect to the new login page.
|
rename-wp-login.php
CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://wordpress.org/plugins/rename-wp-login/
|
|
6 |
Description: Change wp-login.php to whatever you want. It can also prevent a lot of brute force attacks.
|
7 |
Author: avryl
|
8 |
Author URI: http://profiles.wordpress.org/avryl/
|
9 |
-
Version: 2.2.
|
10 |
Text Domain: rename-wp-login
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -137,9 +137,9 @@ if ( ! class_exists( 'Rename_WP_Login' )
|
|
137 |
add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ), 1 );
|
138 |
add_action( 'wp_loaded', array( $this, 'wp_loaded' ) );
|
139 |
|
140 |
-
add_filter( 'site_url', array( $this, '
|
141 |
-
add_filter( 'network_site_url', array( $this, '
|
142 |
-
add_filter( 'wp_redirect', array( $this, '
|
143 |
|
144 |
add_filter( 'site_option_welcome_email', array( $this, 'welcome_email' ) );
|
145 |
|
@@ -492,6 +492,24 @@ if ( ! class_exists( 'Rename_WP_Login' )
|
|
492 |
|
493 |
}
|
494 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
495 |
public function filter_wp_login_php( $url ) {
|
496 |
|
497 |
if ( strpos( $url, 'wp-login.php' ) !== false ) {
|
6 |
Description: Change wp-login.php to whatever you want. It can also prevent a lot of brute force attacks.
|
7 |
Author: avryl
|
8 |
Author URI: http://profiles.wordpress.org/avryl/
|
9 |
+
Version: 2.2.3
|
10 |
Text Domain: rename-wp-login
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
137 |
add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ), 1 );
|
138 |
add_action( 'wp_loaded', array( $this, 'wp_loaded' ) );
|
139 |
|
140 |
+
add_filter( 'site_url', array( $this, 'site_url' ), 10, 4 );
|
141 |
+
add_filter( 'network_site_url', array( $this, 'network_site_url' ), 10, 3 );
|
142 |
+
add_filter( 'wp_redirect', array( $this, 'wp_redirect' ), 10, 2 );
|
143 |
|
144 |
add_filter( 'site_option_welcome_email', array( $this, 'welcome_email' ) );
|
145 |
|
492 |
|
493 |
}
|
494 |
|
495 |
+
public function site_url( $url, $path, $scheme, $blog_id ) {
|
496 |
+
|
497 |
+
return $this->filter_wp_login_php( $url );
|
498 |
+
|
499 |
+
}
|
500 |
+
|
501 |
+
public function network_site_url( $url, $path, $scheme ) {
|
502 |
+
|
503 |
+
return $this->filter_wp_login_php( $url );
|
504 |
+
|
505 |
+
}
|
506 |
+
|
507 |
+
public function wp_redirect( $location, $status ) {
|
508 |
+
|
509 |
+
return $this->filter_wp_login_php( $location );
|
510 |
+
|
511 |
+
}
|
512 |
+
|
513 |
public function filter_wp_login_php( $url ) {
|
514 |
|
515 |
if ( strpos( $url, 'wp-login.php' ) !== false ) {
|