WP-Sweep - Version 1.1.3

Version Description

Download this release

Release Info

Developer GamerZ
Plugin Icon WP-Sweep
Version 1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.3

Files changed (3) hide show
  1. inc/class-wpsweep-api.php +1 -1
  2. readme.txt +5 -2
  3. wp-sweep.php +3 -3
inc/class-wpsweep-api.php CHANGED
@@ -189,6 +189,6 @@ class WPSweep_Api {
189
  * @return bool Does the user has access to sweep?
190
  */
191
  public function permission_check() {
192
- return current_user_can( 'update_plugins' );
193
  }
194
  }
189
  * @return bool Does the user has access to sweep?
190
  */
191
  public function permission_check() {
192
+ return current_user_can( 'activate_plugins' );
193
  }
194
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://lesterchan.net/site/donation/
4
  Tags: sweep, clean, cleanup, clean up, optimize, orphan, unused, duplicated, posts, post meta, comments, comment meta, users, user meta, terms, term meta, term relationships, revisions, auto drafts, transient, database, tables, oembed
5
  Requires at least: 4.6
6
  Tested up to: 5.4
7
- Stable tag: 1.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -104,8 +104,11 @@ WP-Sweep is not compatible with the following plugins:
104
  I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
105
 
106
  ## Changelog
 
 
 
107
  ### 1.1.2
108
- * NEW: Changed permission check to `manage_plugins` for better MultiSite compatibility.
109
  * NEW: Bump min PHP version to 5.6.
110
 
111
  ### 1.1.1
4
  Tags: sweep, clean, cleanup, clean up, optimize, orphan, unused, duplicated, posts, post meta, comments, comment meta, users, user meta, terms, term meta, term relationships, revisions, auto drafts, transient, database, tables, oembed
5
  Requires at least: 4.6
6
  Tested up to: 5.4
7
+ Stable tag: 1.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
104
  I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
105
 
106
  ## Changelog
107
+ ### 1.1.3
108
+ * FIXED: Changed permissions check to `activate_plugins` because `update_plugins` will return false when DISALLOW_FILE_MODS=true.
109
+
110
  ### 1.1.2
111
+ * NEW: Changed permission check to `update_plugins` for better MultiSite compatibility.
112
  * NEW: Bump min PHP version to 5.6.
113
 
114
  ### 1.1.1
wp-sweep.php CHANGED
@@ -9,7 +9,7 @@
9
  Plugin Name: WP-Sweep
10
  Plugin URI: https://lesterchan.net/portfolio/programming/php/
11
  Description: WP-Sweep allows you to clean up unused, orphaned and duplicated data in your WordPress. It cleans up revisions, auto drafts, unapproved comments, spam comments, trashed comments, orphan post meta, orphan comment meta, orphan user meta, orphan term relationships, unused terms, duplicated post meta, duplicated comment meta, duplicated user meta and transient options. It also optimizes your database tables.
12
- Version: 1.1.2
13
  Author: Lester 'GaMerZ' Chan
14
  Author URI: https://lesterchan.net
15
  Text Domain: wp-sweep
@@ -38,7 +38,7 @@ License: GPL2
38
  *
39
  * @since 1.0.0
40
  */
41
- define( 'WP_SWEEP_VERSION', '1.1.2' );
42
 
43
  /**
44
  * WP Rest API
@@ -179,7 +179,7 @@ class WPSweep {
179
  * @return void
180
  */
181
  public function admin_menu() {
182
- add_management_page( _x( 'Sweep', 'Page title', 'wp-sweep' ), _x( 'Sweep', 'Menu title', 'wp-sweep' ), 'update_plugins', 'wp-sweep/admin.php' );
183
  }
184
 
185
 
9
  Plugin Name: WP-Sweep
10
  Plugin URI: https://lesterchan.net/portfolio/programming/php/
11
  Description: WP-Sweep allows you to clean up unused, orphaned and duplicated data in your WordPress. It cleans up revisions, auto drafts, unapproved comments, spam comments, trashed comments, orphan post meta, orphan comment meta, orphan user meta, orphan term relationships, unused terms, duplicated post meta, duplicated comment meta, duplicated user meta and transient options. It also optimizes your database tables.
12
+ Version: 1.1.3
13
  Author: Lester 'GaMerZ' Chan
14
  Author URI: https://lesterchan.net
15
  Text Domain: wp-sweep
38
  *
39
  * @since 1.0.0
40
  */
41
+ define( 'WP_SWEEP_VERSION', '1.1.3' );
42
 
43
  /**
44
  * WP Rest API
179
  * @return void
180
  */
181
  public function admin_menu() {
182
+ add_management_page( _x( 'Sweep', 'Page title', 'wp-sweep' ), _x( 'Sweep', 'Menu title', 'wp-sweep' ), 'activate_plugins', 'wp-sweep/admin.php' );
183
  }
184
 
185