Version Description
Fix an issue where a user does not have a user_level
Download this release
Release Info
Developer | sivel |
Plugin | WordPress Reset |
Version | 1.3.3 |
Comparing to | |
See all releases |
Code changes from version 1.3.2 to 1.3.3
- readme.txt +8 -2
- wordpress-reset.php +2 -2
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: sivel
|
|
3 |
Donate Link: http://sivel.net/donate
|
4 |
Tags: wordpress-reset, wordpress, reset, admin
|
5 |
Requires at least: 2.8
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.3.
|
8 |
|
9 |
Resets the WordPress database back to it's defaults. Deletes all customizations and content. Does not modify files only resets the database.
|
10 |
|
@@ -53,6 +53,9 @@ $reactivate_wp_reset_additional = array(
|
|
53 |
|
54 |
== Upgrade Notice ==
|
55 |
|
|
|
|
|
|
|
56 |
= 1.3.2 =
|
57 |
Support PHP versions below 5.3.0, by not using lambda function creation in add_action for admin_notices
|
58 |
|
@@ -65,6 +68,9 @@ Fixes a deprecated notice in WordPress 3.3, removed the $auto_reactivate variabl
|
|
65 |
|
66 |
== Changelog ==
|
67 |
|
|
|
|
|
|
|
68 |
= 1.3.2 (2012-02-13): =
|
69 |
* Support PHP versions below 5.3.0, by not using lambda function creation in add_action for admin_notices
|
70 |
|
3 |
Donate Link: http://sivel.net/donate
|
4 |
Tags: wordpress-reset, wordpress, reset, admin
|
5 |
Requires at least: 2.8
|
6 |
+
Tested up to: 3.8
|
7 |
+
Stable tag: 1.3.3
|
8 |
|
9 |
Resets the WordPress database back to it's defaults. Deletes all customizations and content. Does not modify files only resets the database.
|
10 |
|
53 |
|
54 |
== Upgrade Notice ==
|
55 |
|
56 |
+
= 1.3.3 =
|
57 |
+
Fix an issue where a user does not have a user_level
|
58 |
+
|
59 |
= 1.3.2 =
|
60 |
Support PHP versions below 5.3.0, by not using lambda function creation in add_action for admin_notices
|
61 |
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 1.3.3 (2013-12-18): =
|
72 |
+
* Fix an issue where a user does not have a user_level
|
73 |
+
|
74 |
= 1.3.2 (2012-02-13): =
|
75 |
* Support PHP versions below 5.3.0, by not using lambda function creation in add_action for admin_notices
|
76 |
|
wordpress-reset.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WordPress Reset
|
|
4 |
Plugin URI: http://sivel.net/wordpress/wordpress-reset/
|
5 |
Description: Resets the WordPress database back to it's defaults. Deletes all customizations and content. Does not modify files only resets the database.
|
6 |
Author: Matt Martz
|
7 |
-
Version: 1.3.
|
8 |
Author URI: http://sivel.net/
|
9 |
|
10 |
Copyright (c) 2009-2012 Matt Martz (http://sivel.net)
|
@@ -66,7 +66,7 @@ class WordPressReset {
|
|
66 |
if ( $current_user->user_login != 'admin' )
|
67 |
$user = get_user_by( 'login', 'admin' );
|
68 |
|
69 |
-
if (
|
70 |
$user = $current_user;
|
71 |
|
72 |
global $wpdb, $reactivate_wp_reset_additional;
|
4 |
Plugin URI: http://sivel.net/wordpress/wordpress-reset/
|
5 |
Description: Resets the WordPress database back to it's defaults. Deletes all customizations and content. Does not modify files only resets the database.
|
6 |
Author: Matt Martz
|
7 |
+
Version: 1.3.3
|
8 |
Author URI: http://sivel.net/
|
9 |
|
10 |
Copyright (c) 2009-2012 Matt Martz (http://sivel.net)
|
66 |
if ( $current_user->user_login != 'admin' )
|
67 |
$user = get_user_by( 'login', 'admin' );
|
68 |
|
69 |
+
if ( empty( $user->user_level ) || $user->user_level < 10 )
|
70 |
$user = $current_user;
|
71 |
|
72 |
global $wpdb, $reactivate_wp_reset_additional;
|