Version Description
Download this release
Release Info
Developer | storeapps |
Plugin | Temporary Login Without Password |
Version | 1.5.19.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.19 to 1.5.19.1
public/class-wp-temporary-login-without-password-public.php
CHANGED
@@ -131,8 +131,24 @@ class Wp_Temporary_Login_Without_Password_Public {
|
|
131 |
$request_uri = $_SERVER['REQUEST_URI'];
|
132 |
|
133 |
if ( ! is_multisite() ) {
|
134 |
-
$component = parse_url( get_site_url(), PHP_URL_PATH );
|
|
|
135 |
if ( ! empty( $component ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
$request_uri = str_replace( $component, '', $request_uri );
|
137 |
}
|
138 |
}
|
131 |
$request_uri = $_SERVER['REQUEST_URI'];
|
132 |
|
133 |
if ( ! is_multisite() ) {
|
134 |
+
$component = trim(parse_url( get_site_url(), PHP_URL_PATH ));
|
135 |
+
|
136 |
if ( ! empty( $component ) ) {
|
137 |
+
/**
|
138 |
+
* Someone may have subdirectory name as 'wp'.
|
139 |
+
*
|
140 |
+
* So, in this scenario, $component would be '/wp' and request uri will
|
141 |
+
* be /wp/wp-admin/?...
|
142 |
+
*
|
143 |
+
* We want to replace only subdirectory. So, if we do str_replace($component, '', $request_uri)
|
144 |
+
* it will result '-admin/?...' which is wrong.
|
145 |
+
*
|
146 |
+
* So, instead of replacing only '/wp', we will replace '/wp/' (end slash) which
|
147 |
+
* results in 'wp-admin/?...'.
|
148 |
+
*
|
149 |
+
* So, we are adding '/' to $component
|
150 |
+
*/
|
151 |
+
$component .= '/';
|
152 |
$request_uri = str_replace( $component, '', $request_uri );
|
153 |
}
|
154 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: temporary access, developer access, admin login, temporary login, passwordless login, customer login, secure login, access, admin, log in, login, login security, protection, user login, user login, wordpress admin login, wordpress login, wp-admin, wp-login, expiration, login, Login Without Password, user, WordPress Admin, wp-admin, developer login
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.2.2
|
7 |
-
Stable tag: 1.5.19
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -24,7 +24,7 @@ Read [this article](https://www.storeapps.org/create-secure-login-without-passwo
|
|
24 |
|
25 |
**Spread The Word**
|
26 |
|
27 |
-
If you like Temporary Login Without Password, please leave a five
|
28 |
|
29 |
**What's Next**
|
30 |
|
@@ -77,6 +77,10 @@ No. at this moment it's not possible to do this.
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
|
|
80 |
**1.5.19 [2019-08-16]**
|
81 |
|
82 |
* Fix: "404 Not Found" issue after clicking on temporary login link for WordPress sub directory installation.
|
4 |
Tags: temporary access, developer access, admin login, temporary login, passwordless login, customer login, secure login, access, admin, log in, login, login security, protection, user login, user login, wordpress admin login, wordpress login, wp-admin, wp-login, expiration, login, Login Without Password, user, WordPress Admin, wp-admin, developer login
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.2.2
|
7 |
+
Stable tag: 1.5.19.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
24 |
|
25 |
**Spread The Word**
|
26 |
|
27 |
+
If you like Temporary Login Without Password, please leave a [five stars review](https://wordpress.org/support/plugin/temporary-login-without-password/reviews/#new-post) and also spread the word about it via [Facebook](https://www.facebook.com/sharer.php?u=https://wordpress.org/plugins/temporary-login-without-password/) and [Twitter](https://twitter.com/intent/tweet?url=https://wordpress.org/plugins/temporary-login-without-password/). That helps fellow website owners assess Temporary Login Without Password easily and benefit from it!
|
28 |
|
29 |
**What's Next**
|
30 |
|
77 |
|
78 |
== Changelog ==
|
79 |
|
80 |
+
**1.5.19.1 [2019-08-19]**
|
81 |
+
|
82 |
+
* Fix: Redirection issue with WordPress sub directory installation.
|
83 |
+
|
84 |
**1.5.19 [2019-08-16]**
|
85 |
|
86 |
* Fix: "404 Not Found" issue after clicking on temporary login link for WordPress sub directory installation.
|
temporary-login-without-password.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Temporary Login Without Password
|
4 |
* Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
|
5 |
* Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
|
6 |
-
* Version: 1.5.19
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://storeapps.org
|
9 |
* Requires at least: 3.0.1
|
@@ -26,7 +26,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
26 |
* Define constants
|
27 |
*/
|
28 |
define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
|
29 |
-
define( 'WTLWP_PLUGIN_VERSION', '1.5.19' );
|
30 |
define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
|
31 |
|
32 |
/**
|
3 |
* Plugin Name: Temporary Login Without Password
|
4 |
* Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
|
5 |
* Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
|
6 |
+
* Version: 1.5.19.1
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://storeapps.org
|
9 |
* Requires at least: 3.0.1
|
26 |
* Define constants
|
27 |
*/
|
28 |
define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
|
29 |
+
define( 'WTLWP_PLUGIN_VERSION', '1.5.19.1' );
|
30 |
define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
|
31 |
|
32 |
/**
|