WP Reset – Fastest WordPress Reset Plugin - Version 1.92

Version Description

Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 WP Reset – Fastest WordPress Reset Plugin
Version 1.92
Comparing to
See all releases

Code changes from version 1.91 to 1.92

Files changed (3) hide show
  1. js/wp-reset.js +26 -2
  2. readme.txt +5 -1
  3. wp-reset.php +5 -1
js/wp-reset.js CHANGED
@@ -594,8 +594,32 @@ jQuery(document).ready(function ($) {
594
  return false;
595
  }
596
 
597
- $(this).off('submit').submit();
598
- return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
599
  }); // bypass default submit behaviour
600
 
601
  $('#wp_reset_submit').click(function (e) {
594
  return false;
595
  }
596
 
597
+ $reset_form = $(this);
598
+
599
+ $.get({
600
+ url: ajaxurl,
601
+ data: {
602
+ action: 'wp_reset_run_tool',
603
+ _ajax_nonce: wp_reset.nonce_run_tool,
604
+ tool: 'before_reset'
605
+ },
606
+ }).done(function (data) {
607
+ if (data.success) {
608
+ $reset_form.off('submit').submit();
609
+ } else {
610
+ wpr_swal.fire({
611
+ icon: 'error',
612
+ title: wp_reset.undocumented_error,
613
+ });
614
+ }
615
+ }).fail(function (data) {
616
+ wpr_swal.fire({
617
+ icon: 'error',
618
+ title: wp_reset.undocumented_error,
619
+ });
620
+ });
621
+
622
+ return false;
623
  }); // bypass default submit behaviour
624
 
625
  $('#wp_reset_submit').click(function (e) {
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.91
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.91 =
119
  * 2021/07/24
120
  * fixed password issue when resetting on WP 5.8
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
  Tested up to: 5.8
7
+ Stable tag: 1.92
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
115
 
116
  == Changelog ==
117
 
118
+ = v1.92 =
119
+ * 2021/07/28
120
+ * more fixes for the password issue when resetting on WP 5.8
121
+
122
  = v1.91 =
123
  * 2021/07/24
124
  * fixed password issue when resetting on WP 5.8
wp-reset.php CHANGED
@@ -3,7 +3,7 @@
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
@@ -978,6 +978,10 @@ class WP_Reset
978
  $path = $this->get_plugin_path(sanitize_text_field($_GET['slug']));
979
  activate_plugin($path);
980
  wp_send_json_success();
 
 
 
 
981
  } else {
982
  wp_send_json_error(__('Unknown tool.', 'wp-reset'));
983
  }
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.92
7
  Requires at least: 4.0
8
  Requires PHP: 5.2
9
  Tested up to: 5.8
978
  $path = $this->get_plugin_path(sanitize_text_field($_GET['slug']));
979
  activate_plugin($path);
980
  wp_send_json_success();
981
+ } elseif ($tool == 'before_reset') {
982
+ remove_all_actions('update_option_active_plugins');
983
+ update_option('active_plugins', array(plugin_basename(__FILE__)));
984
+ wp_send_json_success();
985
  } else {
986
  wp_send_json_error(__('Unknown tool.', 'wp-reset'));
987
  }