Version Description
Download this release
Release Info
Developer | WebFactory |
Plugin | WP Reset – Fastest WordPress Reset Plugin |
Version | 1.91 |
Comparing to | |
See all releases |
Code changes from version 1.90 to 1.91
- readme.txt +5 -1
- wp-reset.php +7 -4
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: WebFactory
|
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -115,6 +115,10 @@ Or if needed, upload manually;
|
|
115 |
|
116 |
== Changelog ==
|
117 |
|
|
|
|
|
|
|
|
|
118 |
= v1.90 =
|
119 |
* 2021/06/01
|
120 |
* security fixes
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 1.91
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
115 |
|
116 |
== Changelog ==
|
117 |
|
118 |
+
= v1.91 =
|
119 |
+
* 2021/07/24
|
120 |
+
* fixed password issue when resetting on WP 5.8
|
121 |
+
|
122 |
= v1.90 =
|
123 |
* 2021/06/01
|
124 |
* security fixes
|
wp-reset.php
CHANGED
@@ -3,10 +3,10 @@
|
|
3 |
Plugin Name: WP Reset
|
4 |
Plugin URI: https://wpreset.com/
|
5 |
Description: Reset the entire site or just selected parts while reserving the option to undo by using snapshots.
|
6 |
-
Version: 1.
|
7 |
Requires at least: 4.0
|
8 |
Requires PHP: 5.2
|
9 |
-
Tested up to: 5.
|
10 |
Author: WebFactory Ltd
|
11 |
Author URI: https://www.webfactoryltd.com/
|
12 |
Text Domain: wp-reset
|
@@ -1051,13 +1051,16 @@ class WP_Reset
|
|
1051 |
$wpdb->query("DROP TABLE $table");
|
1052 |
}
|
1053 |
|
1054 |
-
|
|
|
|
|
1055 |
$result = @wp_install($blogname, $current_user->user_login, $current_user->user_email, $blog_public, '', md5(rand()), $wplang);
|
1056 |
$user_id = $result['user_id'];
|
1057 |
|
1058 |
// restore user pass
|
1059 |
-
$query = $wpdb->prepare("UPDATE {$wpdb->users} SET user_pass = %s, user_activation_key =
|
1060 |
$wpdb->query($query);
|
|
|
1061 |
|
1062 |
// restore rest of the settings including WP Reset's
|
1063 |
update_option('siteurl', $siteurl);
|
3 |
Plugin Name: WP Reset
|
4 |
Plugin URI: https://wpreset.com/
|
5 |
Description: Reset the entire site or just selected parts while reserving the option to undo by using snapshots.
|
6 |
+
Version: 1.91
|
7 |
Requires at least: 4.0
|
8 |
Requires PHP: 5.2
|
9 |
+
Tested up to: 5.8
|
10 |
Author: WebFactory Ltd
|
11 |
Author URI: https://www.webfactoryltd.com/
|
12 |
Text Domain: wp-reset
|
1051 |
$wpdb->query("DROP TABLE $table");
|
1052 |
}
|
1053 |
|
1054 |
+
$old_user_pass = $current_user->user_pass;
|
1055 |
+
|
1056 |
+
// suppress errors for WP_CLI
|
1057 |
$result = @wp_install($blogname, $current_user->user_login, $current_user->user_email, $blog_public, '', md5(rand()), $wplang);
|
1058 |
$user_id = $result['user_id'];
|
1059 |
|
1060 |
// restore user pass
|
1061 |
+
$query = $wpdb->prepare("UPDATE {$wpdb->users} SET user_pass = %s, user_activation_key = %s WHERE ID = %d LIMIT 1", array($old_user_pass, '', $user_id));
|
1062 |
$wpdb->query($query);
|
1063 |
+
$current_user->user_pass = $old_user_pass;
|
1064 |
|
1065 |
// restore rest of the settings including WP Reset's
|
1066 |
update_option('siteurl', $siteurl);
|