WP Reset – Fastest WordPress Reset Plugin - Version 1.86

Version Description

Download this release

Release Info

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

Code changes from version 1.85 to 1.86

readme.txt CHANGED
@@ -3,8 +3,8 @@ Tags: wordpress reset, reset database, reset wordpress database, reset, advanced
3
  Contributors: WebFactory
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
- Tested up to: 5.6
7
- Stable tag: 1.85
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -20,7 +20,6 @@ For support please use the <a href="https://wordpress.org/support/plugin/wp-rese
20
 
21
  Access WP Reset admin page via the "Tools" menu.
22
 
23
-
24
  **Please read carefully before proceeding to understand what WP Reset does, and remember to always create a snapshot**
25
 
26
  #### Resetting will delete:
@@ -116,6 +115,10 @@ Or if needed, upload manually;
116
 
117
  == Changelog ==
118
 
 
 
 
 
119
  = v1.85 =
120
  * 2021/01/30
121
  * code clean-up
3
  Contributors: WebFactory
4
  Requires at least: 4.0
5
  Requires PHP: 5.2
6
+ Tested up to: 5.7
7
+ Stable tag: 1.86
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
20
 
21
  Access WP Reset admin page via the "Tools" menu.
22
 
 
23
  **Please read carefully before proceeding to understand what WP Reset does, and remember to always create a snapshot**
24
 
25
  #### Resetting will delete:
115
 
116
  == Changelog ==
117
 
118
+ = v1.86 =
119
+ * 2021/02/20
120
+ * fixed a small but nasty translation bug that prevented some users from resetting
121
+
122
  = v1.85 =
123
  * 2021/01/30
124
  * code clean-up
wf-flyout/config.php CHANGED
@@ -4,18 +4,18 @@ $config = array();
4
  $config['plugin_screen'] = 'tools_page_wp-reset';
5
  $config['icon_border'] = '1px solid #00000099';
6
  $config['icon_right'] = '35px';
7
- $config['icon_bottom'] = '35px';
8
  $config['icon_image'] = 'wp-reset.png';
9
  $config['icon_padding'] = '4px';
10
  $config['icon_size'] = '55px';
11
  $config['menu_accent_color'] = '#dd3036';
12
- $config['custom_css'] = '#wf-flyout .wff-menu-item .dashicons.dashicons-universal-access { font-size: 30px; padding: 0px 10px 0px 0; } #wf-flyout .ucp-icon .wff-icon img { max-width: 70%; } #wf-flyout .ucp-icon .wff-icon { line-height: 57px; }';
13
 
14
  $config['menu_items'] = array(
15
  array('href' => 'https://wpreset.com/?ref=wff-wp-reset', 'target' => '_blank', 'label' => 'Get WP Reset PRO with 50% off', 'icon' => 'wp-reset.png'),
16
- array('href' => admin_url('plugin-install.php?s=accessibe&tab=search&type=author'), 'target' => '_blank', 'label' => 'Make your site accessible to people with disabilities', 'icon' => 'dashicons-universal-access'),
17
  array('href' => 'https://underconstructionpage.com/?ref=wff-wp-reset&coupon=welcome', 'target' => '_blank', 'label' => 'Create the perfect Under Construction Page', 'icon' => 'ucp.png', 'class' => 'ucp-icon'),
18
- array('href' => 'https://wpsticky.com/?ref=wff-wp-reset', 'target' => '_blank', 'label' => 'Make a menu sticky with WP Sticky', 'icon' => 'dashicons-admin-post'),
19
  array('href' => 'https://wordpress.org/support/plugin/wp-reset/reviews/?filter=5#new-post', 'target' => '_blank', 'label' => 'Rate the Plugin', 'icon' => 'dashicons-thumbs-up'),
20
  array('href' => 'https://wordpress.org/support/plugin/wp-reset/#new-post', 'target' => '_blank', 'label' => 'Get Support', 'icon' => 'dashicons-sos'),
21
  );
4
  $config['plugin_screen'] = 'tools_page_wp-reset';
5
  $config['icon_border'] = '1px solid #00000099';
6
  $config['icon_right'] = '35px';
7
+ $config['icon_bottom'] = '45px';
8
  $config['icon_image'] = 'wp-reset.png';
9
  $config['icon_padding'] = '4px';
10
  $config['icon_size'] = '55px';
11
  $config['menu_accent_color'] = '#dd3036';
12
+ $config['custom_css'] = '#wf-flyout .ucp-icon .wff-icon img { max-width: 70%; } #wf-flyout .ucp-icon .wff-icon { line-height: 57px; } #wf-flyout .wp301-icon .wff-icon img { max-width: 70%; } #wf-flyout .wp301-icon .wff-icon { line-height: 57px; } #wf-flyout .wff-custom-icon.wff-menu-item-6 span.wff-icon { line-height: 63px; }';
13
 
14
  $config['menu_items'] = array(
15
  array('href' => 'https://wpreset.com/?ref=wff-wp-reset', 'target' => '_blank', 'label' => 'Get WP Reset PRO with 50% off', 'icon' => 'wp-reset.png'),
16
+ array('href' => 'https://wp301redirects.com/?ref=wff-wp-reset&coupon=50off', 'label' => 'Get WP 301 Redirects PRO with 50% off', 'icon' => '301-logo.png', 'class' => 'wp301-icon'),
17
  array('href' => 'https://underconstructionpage.com/?ref=wff-wp-reset&coupon=welcome', 'target' => '_blank', 'label' => 'Create the perfect Under Construction Page', 'icon' => 'ucp.png', 'class' => 'ucp-icon'),
18
+ array('href' => 'https://wpsticky.com/?ref=wff-wp-reset', 'target' => '_blank', 'label' => 'Make any element sticky with WP Sticky', 'icon' => 'dashicons-admin-post'),
19
  array('href' => 'https://wordpress.org/support/plugin/wp-reset/reviews/?filter=5#new-post', 'target' => '_blank', 'label' => 'Rate the Plugin', 'icon' => 'dashicons-thumbs-up'),
20
  array('href' => 'https://wordpress.org/support/plugin/wp-reset/#new-post', 'target' => '_blank', 'label' => 'Get Support', 'icon' => 'dashicons-sos'),
21
  );
wf-flyout/icons/301-logo.png ADDED
Binary file
wf-flyout/wf-flyout.php CHANGED
@@ -124,7 +124,7 @@ if (false == class_exists('wf_flyout')) {
124
 
125
  $out = '';
126
  $icons_url = plugin_dir_url($this->plugin_file) . 'wf-flyout/icons/';
127
- $default_link_item = array('class' => '', 'href' => '#', 'target' => '_blank', 'label' => '', 'icon' => '');
128
 
129
  $out .= '<div id="wff-overlay"></div>';
130
 
@@ -148,7 +148,7 @@ if (false == class_exists('wf_flyout')) {
148
  $item['class'] = trim($item['class']);
149
  }
150
 
151
- $out .= '<a href="' . $item['href'] . '" class="wff-menu-item wff-menu-item-' . $i . ' ' . $item['class'] . '" target="_blank">';
152
  $out .= '<span class="wff-label visible">' . $item['label'] . '</span>';
153
  if (substr($item['icon'], 0, 9) == 'dashicons') {
154
  $out .= '<span class="dashicons ' . $item['icon'] . '"></span>';
124
 
125
  $out = '';
126
  $icons_url = plugin_dir_url($this->plugin_file) . 'wf-flyout/icons/';
127
+ $default_link_item = array('class' => '', 'href' => '#', 'target' => '_blank', 'label' => '', 'icon' => '', 'data' => '');
128
 
129
  $out .= '<div id="wff-overlay"></div>';
130
 
148
  $item['class'] = trim($item['class']);
149
  }
150
 
151
+ $out .= '<a ' . $item['data'] . ' href="' . $item['href'] . '" class="wff-menu-item wff-menu-item-' . $i . ' ' . $item['class'] . '" target="_blank">';
152
  $out .= '<span class="wff-label visible">' . $item['label'] . '</span>';
153
  if (substr($item['icon'], 0, 9) == 'dashicons') {
154
  $out .= '<span class="dashicons ' . $item['icon'] . '"></span>';
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.85
7
  Requires at least: 4.0
8
  Requires PHP: 5.2
9
  Tested up to: 5.6
@@ -1115,7 +1115,6 @@ class WP_Reset
1115
  $siteurl = get_option('siteurl');
1116
  $home = get_option('home');
1117
  $snapshots = $this->get_snapshots();
1118
- $wp301promo = get_option('wp301promo');
1119
 
1120
  $active_plugins = get_option('active_plugins');
1121
  $active_theme = wp_get_theme();
@@ -1149,7 +1148,6 @@ class WP_Reset
1149
  update_option('home', $home);
1150
  update_option('wp-reset', $this->options);
1151
  update_option('wp-reset-snapshots', $snapshots);
1152
- update_option('wp301promo', $wp301promo);
1153
 
1154
  // remove password nag
1155
  if (get_user_meta($user_id, 'default_password_nag')) {
@@ -1712,7 +1710,7 @@ class WP_Reset
1712
  echo '<p>' . __('Type <b>reset</b> in the confirmation field to confirm the reset and then click the "Reset WordPress" button.<br>Always <a href="#" class="create-new-snapshot" data-description="Before resetting the site">create a snapshot</a> before resetting if you want to be able to undo.', 'wp-reset') . '</p>';
1713
 
1714
  wp_nonce_field('wp-reset');
1715
- echo '<p class="mb0"><input id="wp_reset_confirm" type="text" name="wp_reset_confirm" placeholder="' . esc_attr__('Type in "reset"', 'wp-reset') . '" value="" autocomplete="off"> &nbsp;';
1716
  echo '<a id="wp_reset_submit" class="button button-delete">' . __('Reset Site', 'wp-reset') . '</a>' . $this->get_snapshot_button('reset-wordpress', 'Before resetting the site') . '</p>';
1717
  echo '</div>';
1718
  echo '</div>'; // card reset
@@ -2406,7 +2404,7 @@ class WP_Reset
2406
 
2407
 
2408
  /**
2409
- * Helper function for generating UTM tagged links
2410
  *
2411
  * @param string $placement Optional. UTM content param.
2412
  * @param string $page Optional. Page to link to.
@@ -2426,7 +2424,12 @@ class WP_Reset
2426
  $page = '/';
2427
  }
2428
 
2429
- $parts = array_merge(array('utm_source' => 'wp-reset-free', 'utm_medium' => 'plugin', 'utm_content' => $placement, 'utm_campaign' => 'wp-reset-free-v' . $this->version), $params);
 
 
 
 
 
2430
 
2431
  if (!empty($anchor)) {
2432
  $anchor = '#' . trim($anchor, '#');
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.86
7
  Requires at least: 4.0
8
  Requires PHP: 5.2
9
  Tested up to: 5.6
1115
  $siteurl = get_option('siteurl');
1116
  $home = get_option('home');
1117
  $snapshots = $this->get_snapshots();
 
1118
 
1119
  $active_plugins = get_option('active_plugins');
1120
  $active_theme = wp_get_theme();
1148
  update_option('home', $home);
1149
  update_option('wp-reset', $this->options);
1150
  update_option('wp-reset-snapshots', $snapshots);
 
1151
 
1152
  // remove password nag
1153
  if (get_user_meta($user_id, 'default_password_nag')) {
1710
  echo '<p>' . __('Type <b>reset</b> in the confirmation field to confirm the reset and then click the "Reset WordPress" button.<br>Always <a href="#" class="create-new-snapshot" data-description="Before resetting the site">create a snapshot</a> before resetting if you want to be able to undo.', 'wp-reset') . '</p>';
1711
 
1712
  wp_nonce_field('wp-reset');
1713
+ echo '<p class="mb0"><input id="wp_reset_confirm" type="text" name="wp_reset_confirm" placeholder="' . esc_attr(sprintf(__('Type in: %s', 'wp-reset'), '"reset"')) . '" value="" autocomplete="off"> &nbsp;';
1714
  echo '<a id="wp_reset_submit" class="button button-delete">' . __('Reset Site', 'wp-reset') . '</a>' . $this->get_snapshot_button('reset-wordpress', 'Before resetting the site') . '</p>';
1715
  echo '</div>';
1716
  echo '</div>'; // card reset
2404
 
2405
 
2406
  /**
2407
+ * Helper function for generating links
2408
  *
2409
  * @param string $placement Optional. UTM content param.
2410
  * @param string $page Optional. Page to link to.
2424
  $page = '/';
2425
  }
2426
 
2427
+ if ($placement) {
2428
+ $placement = trim($placement);
2429
+ $placement = '-' . $placement;
2430
+ }
2431
+
2432
+ $parts = array_merge(array('ref' => 'wp-reset-free'. $placement), $params);
2433
 
2434
  if (!empty($anchor)) {
2435
  $anchor = '#' . trim($anchor, '#');