Version Description
- 2018/10/02
- effort to move people to WP Reset continues
Download this release
Release Info
Developer | WebFactory |
Plugin | Reset WP |
Version | 1.45 |
Comparing to | |
See all releases |
Code changes from version 1.4 to 1.45
- readme.txt +8 -4
- reset-wp.php +120 -14
- wp-reset-logo.png +0 -0
readme.txt
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
=== Reset WP - Easiest WordPress Reset Plugin ===
|
2 |
-
Contributors: WebFactory, WPreset, googlemapswidget
|
3 |
Tags: reset wp, reset wordpress, wordpress reset, wp reset, reset, restart wordpress, clean wordpress, clean database, restart, reset database, default wordpress, developer
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9
|
6 |
Requires PHP: 5.2
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Reset WordPress
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
**This plugin has a new home in the WordPress repo - <a href="https://wordpress.org/plugins/wp-reset/">wordpress.org/plugins/wp-reset/</a> - Please download it from there. Thank you!** More info about this change is available on the <a href="https://wpreset.com/rebranding-reset-wp/?utm_source=wordpressorg&utm_medium=content&utm_campaign=reset-wp&utm_term=wp%20reset%20blog">WP Reset blog</a>.
|
16 |
|
17 |
|
18 |
<a href="https://wpreset.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=reset-wp&utm_term=reset%20wordpress">Reset WordPress</a> resets the WP database back to the default installation values without deleting or modifying any files. It's fast and safe to use and an ideal tool for testing during WP development.
|
@@ -56,6 +56,10 @@ Or if needed, upload manually;
|
|
56 |
|
57 |
== Changelog ==
|
58 |
|
|
|
|
|
|
|
|
|
59 |
= 1.4 =
|
60 |
* 2018/07/25
|
61 |
* started moving users to WP Reset - https://wordpress.org/plugins/wp-reset/
|
1 |
=== Reset WP - Easiest WordPress Reset Plugin ===
|
2 |
+
Contributors: WebFactory, WPreset, underconstructionpage, googlemapswidget, securityninja
|
3 |
Tags: reset wp, reset wordpress, wordpress reset, wp reset, reset, restart wordpress, clean wordpress, clean database, restart, reset database, default wordpress, developer
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9
|
6 |
Requires PHP: 5.2
|
7 |
+
Stable tag: 1.45
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Reset WordPress is no longer maintained. Please use WP Reset instead (the one with red & black round logo).
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
**This plugin has a new home in the WordPress repo - <a href="https://wordpress.org/plugins/wp-reset/">wordpress.org/plugins/wp-reset/</a> - Please download it from there. Thank you!** More info about this change is available on the <a href="https://wpreset.com/rebranding-reset-wp/?utm_source=wordpressorg&utm_medium=content&utm_campaign=reset-wp&utm_term=wp%20reset%20blog">WP Reset blog</a>. Please use WP Reset as this plugin is no longer maintained.
|
16 |
|
17 |
|
18 |
<a href="https://wpreset.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=reset-wp&utm_term=reset%20wordpress">Reset WordPress</a> resets the WP database back to the default installation values without deleting or modifying any files. It's fast and safe to use and an ideal tool for testing during WP development.
|
56 |
|
57 |
== Changelog ==
|
58 |
|
59 |
+
= 1.45 =
|
60 |
+
* 2018/10/02
|
61 |
+
* effort to move people to WP Reset continues
|
62 |
+
|
63 |
= 1.4 =
|
64 |
* 2018/07/25
|
65 |
* started moving users to WP Reset - https://wordpress.org/plugins/wp-reset/
|
reset-wp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Reset WP
|
4 |
Plugin URI: https://wpreset.com
|
5 |
Description: Reset the WordPress database to the default installation values including all content and customizations. This plugin will soon be removed from the WP repository and replaced with WP Reset.
|
6 |
-
Version: 1.
|
7 |
Author: WebFactory Ltd
|
8 |
Author URI: https://www.webfactoryltd.com/
|
9 |
Text Domain: reset-wp
|
@@ -28,7 +28,7 @@ if ( is_admin() ) {
|
|
28 |
define( 'REACTIVATE_THE_RESET_WP', true );
|
29 |
|
30 |
class ResetWP {
|
31 |
-
static $version = 1.
|
32 |
|
33 |
function __construct() {
|
34 |
add_action( 'admin_menu', array( $this, 'add_page' ) );
|
@@ -51,9 +51,9 @@ class ResetWP {
|
|
51 |
$blogname = get_option( 'blogname' );
|
52 |
$admin_email = get_option( 'admin_email' );
|
53 |
$blog_public = get_option( 'blog_public' );
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
|
58 |
if ( $current_user->user_login != 'admin' )
|
59 |
$user = get_user_by( 'login', 'admin' );
|
@@ -177,22 +177,129 @@ class ResetWP {
|
|
177 |
<div class="wrap">
|
178 |
<h2>Reset WP</h2>
|
179 |
|
180 |
-
<div class="card">
|
181 |
-
<
|
182 |
-
<p
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
<?php
|
184 |
$replace_url = add_query_arg(array('action' => 'replace_reset_wp'), admin_url('admin.php'));
|
185 |
-
echo '<a class="button button-primary" id="upgrade-wp-reset">Replace plugin with the new version - WP Reset</a><br>';
|
186 |
-
echo '<p>What happens when I click the button? WP Reset will be downloaded from <a target="_blank" href="https://wordpress.org/plugins/wp-reset/">wordpress.org/plugins/wp-reset/</a> and activated. You\'ll be redirected to its admin page
|
187 |
?>
|
188 |
<script>
|
189 |
-
jQuery('#upgrade-wp-reset').on('click',function(){
|
190 |
jQuery('body').append('<div style="width:400px;height:540px; position:absolute;top:10%;left:50%;margin-left:-200px;background:#FFF;border:1px solid #DDD; border-radius:4px;box-shadow: 0px 0px 0px 4000px rgba(0, 0, 0, 0.85);z-index: 9999999;"><iframe src="<?php echo $replace_url; ?>" style="width:100%;height:100%;border:none;" /></div>');
|
191 |
jQuery('#wpwrap').css('pointer-events', 'none');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
});
|
193 |
</script>
|
194 |
</div>
|
195 |
-
<div class="card">
|
196 |
<p><strong>After completing the reset operation, you will be automatically logged in and redirected to the dashboard.</strong></p>
|
197 |
|
198 |
<?php
|
@@ -296,5 +403,4 @@ class ResetWP {
|
|
296 |
}
|
297 |
|
298 |
$ResetWP = new ResetWP();
|
299 |
-
|
300 |
-
}
|
3 |
Plugin Name: Reset WP
|
4 |
Plugin URI: https://wpreset.com
|
5 |
Description: Reset the WordPress database to the default installation values including all content and customizations. This plugin will soon be removed from the WP repository and replaced with WP Reset.
|
6 |
+
Version: 1.45
|
7 |
Author: WebFactory Ltd
|
8 |
Author URI: https://www.webfactoryltd.com/
|
9 |
Text Domain: reset-wp
|
28 |
define( 'REACTIVATE_THE_RESET_WP', true );
|
29 |
|
30 |
class ResetWP {
|
31 |
+
static $version = 1.45;
|
32 |
|
33 |
function __construct() {
|
34 |
add_action( 'admin_menu', array( $this, 'add_page' ) );
|
51 |
$blogname = get_option( 'blogname' );
|
52 |
$admin_email = get_option( 'admin_email' );
|
53 |
$blog_public = get_option( 'blog_public' );
|
54 |
+
$wplang = get_option( 'wplang' );
|
55 |
+
$siteurl = get_option ( 'siteurl' );
|
56 |
+
$home = get_option ( 'home' );
|
57 |
|
58 |
if ( $current_user->user_login != 'admin' )
|
59 |
$user = get_user_by( 'login', 'admin' );
|
177 |
<div class="wrap">
|
178 |
<h2>Reset WP</h2>
|
179 |
|
180 |
+
<div class="card" id="wp-reset-promo">
|
181 |
+
<h2 style="color: #ca4a1f;">This plugin is old & unmaintained! It's been replaced by <a target="_blank" href="https://wordpress.org/plugins/wp-reset/">WP Reset</a></h2>
|
182 |
+
<p><b>This is NOT an upsell or an advertisement! WP Reset is 100% FREE. We want you to use a safe, fast & maintained plugin.</b></p>
|
183 |
+
<p>Except the name and the slug <b>NOTHING CHANGES</b> for you. WP Reset is simple, fast, free and maintained by the same dedicated developers. You can read more about this change on the <a target="_blank" href="https://wpreset.com/rebranding-reset-wp/?utm_source=reset-wp-free&utm_medium=plugin&utm_content=wp-reset-blog&utm_campaign=reset-wp-free-v<?php echo self::$version; ?>">WP Reset blog</a>. If you have any questions, email us - <a href="mailto:wpreset@webfactoryltd.com?subject=Switching to WP Reset">wpreset@webfactoryltd.com</a>.</p>
|
184 |
+
<br><br>
|
185 |
+
<style>
|
186 |
+
#wpr-upgrade {
|
187 |
+
padding: 0;
|
188 |
+
margin: 0;
|
189 |
+
border-spacing: 0;
|
190 |
+
border-collapse: collapse;
|
191 |
+
width: 100%;
|
192 |
+
}
|
193 |
+
#wpr-upgrade th {
|
194 |
+
border-bottom: 1px solid black;
|
195 |
+
padding: 6px 4px;
|
196 |
+
}
|
197 |
+
#wpr-upgrade tr td:first-child {
|
198 |
+
border-right: 1px solid black;
|
199 |
+
text-align: right;
|
200 |
+
}
|
201 |
+
#wpr-upgrade tr td:last-child, #wpr-upgrade tr th:last-child {
|
202 |
+
background: #eeeeee50;
|
203 |
+
}
|
204 |
+
#wpr-upgrade td {
|
205 |
+
text-align: center;
|
206 |
+
padding: 6px 4px;
|
207 |
+
border-bottom: 1px dotted #222;
|
208 |
+
}
|
209 |
+
.red {
|
210 |
+
color: #ca4a1f;
|
211 |
+
}
|
212 |
+
.green {
|
213 |
+
color: #1fca3c;
|
214 |
+
}
|
215 |
+
</style>
|
216 |
+
<table id="wpr-upgrade">
|
217 |
+
<tr>
|
218 |
+
<th style="width: 31%;"> </th>
|
219 |
+
<th>Current plugin</th>
|
220 |
+
<th style="width: 35%;"><a href="https://wordpress.org/plugins/wp-reset/" target="_blank" title="WP Reset"><img style="height: 20px; width: auto;" src="<?php echo plugin_dir_url( __FILE__ ); ?>wp-reset-logo.png" alt="WP Reset" title="WP Reset"></a></th>
|
221 |
+
</tr>
|
222 |
+
<tr>
|
223 |
+
<td>updates</td>
|
224 |
+
<td><span class="red dashicons dashicons-no"></span><br>no longer updated</td>
|
225 |
+
<td><span class="green dashicons dashicons-yes"></span><br>regular, every 3 weeks</td>
|
226 |
+
</tr>
|
227 |
+
<tr>
|
228 |
+
<td>compatible with latest WP</td>
|
229 |
+
<td><span class="red dashicons dashicons-no"></span></td>
|
230 |
+
<td><span class="green dashicons dashicons-yes"></span></td>
|
231 |
+
</tr>
|
232 |
+
<tr>
|
233 |
+
<td>support</td>
|
234 |
+
<td><span class="red dashicons dashicons-no"></span><br>support no longer available</td>
|
235 |
+
<td><span class="green dashicons dashicons-yes"></span><br>fast, via email & forums</td>
|
236 |
+
</tr>
|
237 |
+
<tr>
|
238 |
+
<td>license</td>
|
239 |
+
<td>free</td>
|
240 |
+
<td>free, 100% open source</td>
|
241 |
+
</tr>
|
242 |
+
<tr>
|
243 |
+
<td>PRO version</td>
|
244 |
+
<td><span class="dashicons dashicons-no"></span></td>
|
245 |
+
<td><span class="dashicons dashicons-no"></span><br>no PRO, no upsells</td>
|
246 |
+
</tr>
|
247 |
+
<tr>
|
248 |
+
<td>number of users</td>
|
249 |
+
<td>30,000</td>
|
250 |
+
<td>60,000+</td>
|
251 |
+
</tr>
|
252 |
+
<tr>
|
253 |
+
<td>site reset function</td>
|
254 |
+
<td><span class="green dashicons dashicons-yes"></span></td>
|
255 |
+
<td><span class="green dashicons dashicons-yes"></span></td>
|
256 |
+
</tr>
|
257 |
+
<tr>
|
258 |
+
<td>partial reset function</td>
|
259 |
+
<td><span class="red dashicons dashicons-no"></span></td>
|
260 |
+
<td><span class="green dashicons dashicons-yes"></span></td>
|
261 |
+
</tr>
|
262 |
+
<tr>
|
263 |
+
<td>additional dev tools</td>
|
264 |
+
<td><span class="red dashicons dashicons-no"></span></td>
|
265 |
+
<td><span class="green dashicons dashicons-yes"></span></td>
|
266 |
+
</tr>
|
267 |
+
<tr>
|
268 |
+
<td>WP-CLI support</td>
|
269 |
+
<td><span class="red dashicons dashicons-no"></span></td>
|
270 |
+
<td><span class="green dashicons dashicons-yes"></span></td>
|
271 |
+
</tr>
|
272 |
+
<tr>
|
273 |
+
<td> </td>
|
274 |
+
<td><a href="" id="continue-reset-wp">Continue using an unmaintained plugin</a></td>
|
275 |
+
<td><a style="margin-bottom: 8px;" class="button button-primary" id="upgrade-wp-reset">Switch to WP Reset</a><br>1 click & 5 seconds of waiting</td>
|
276 |
+
</tr>
|
277 |
+
</table>
|
278 |
+
<br>
|
279 |
<?php
|
280 |
$replace_url = add_query_arg(array('action' => 'replace_reset_wp'), admin_url('admin.php'));
|
281 |
+
//echo '<a class="button button-primary" id="upgrade-wp-reset">Replace plugin with the new version - WP Reset</a><br>';
|
282 |
+
echo '<p>What happens when I click the "Switch to WP Reset" button? WP Reset will be downloaded from <a target="_blank" href="https://wordpress.org/plugins/wp-reset/">wordpress.org/plugins/wp-reset/</a> and activated. You\'ll be redirected to its admin page and this plugin will then be deactivated. Nothing is deleted or removed!</p>';
|
283 |
?>
|
284 |
<script>
|
285 |
+
jQuery('#upgrade-wp-reset').on('click',function(e){
|
286 |
jQuery('body').append('<div style="width:400px;height:540px; position:absolute;top:10%;left:50%;margin-left:-200px;background:#FFF;border:1px solid #DDD; border-radius:4px;box-shadow: 0px 0px 0px 4000px rgba(0, 0, 0, 0.85);z-index: 9999999;"><iframe src="<?php echo $replace_url; ?>" style="width:100%;height:100%;border:none;" /></div>');
|
287 |
jQuery('#wpwrap').css('pointer-events', 'none');
|
288 |
+
|
289 |
+
e.preventDefault();
|
290 |
+
return false;
|
291 |
+
});
|
292 |
+
|
293 |
+
jQuery('#continue-reset-wp').on('click',function(e){
|
294 |
+
jQuery('#wp-reset-promo').hide();
|
295 |
+
jQuery('#reset-wp-do').show();
|
296 |
+
|
297 |
+
e.preventDefault();
|
298 |
+
return false;
|
299 |
});
|
300 |
</script>
|
301 |
</div>
|
302 |
+
<div id="reset-wp-do" class="card" style="display: none;">
|
303 |
<p><strong>After completing the reset operation, you will be automatically logged in and redirected to the dashboard.</strong></p>
|
304 |
|
305 |
<?php
|
403 |
}
|
404 |
|
405 |
$ResetWP = new ResetWP();
|
406 |
+
}
|
|
wp-reset-logo.png
ADDED
Binary file
|