WP-Sweep - Version 1.1.1

Version Description

Download this release

Release Info

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

Code changes from version 1.1.0 to 1.1.1

Files changed (2) hide show
  1. readme.txt +7 -3
  2. wp-sweep.php +5 -4
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: GamerZ
3
  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.0
7
- Stable tag: 1.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -84,7 +84,8 @@ WP-Sweep is not compatible with the following plugins:
84
  * [Meta Slider](https://wordpress.org/support/plugin/ml-slider/)
85
  * [Slider Revolution](https://revolution.themepunch.com/)
86
  * [Viba Portfolio](https://codecanyon.net/item/viba-portfolio-wordpress-plugin/9561599)
87
- * [MailPress](http://www.mailpress.org/)
 
88
 
89
  ### Build Status
90
  [![Build Status](https://travis-ci.org/lesterchan/wp-sweep.svg?branch=master)](https://travis-ci.org/lesterchan/wp-sweep) [![Code Climate](https://codeclimate.com/github/lesterchan/wp-sweep/badges/gpa.svg)](https://codeclimate.com/github/lesterchan/wp-sweep) [![Issue Count](https://codeclimate.com/github/lesterchan/wp-sweep/badges/issue_count.svg)](https://codeclimate.com/github/lesterchan/wp-sweep)
@@ -99,6 +100,9 @@ WP-Sweep is not compatible with the following plugins:
99
  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.
100
 
101
  ## Changelog
 
 
 
102
  ### 1.1.0
103
  * NEW: Added WP Rest API Endpoint support, `sweep/v1/count/<Name>`, `sweep/v1/details/<Name>`, and `sweep/v1/sweep/<Name>`
104
  * FIXED: Follow as close as possible to WordPress Coding Standards
3
  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.3
7
+ Stable tag: 1.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
84
  * [Meta Slider](https://wordpress.org/support/plugin/ml-slider/)
85
  * [Slider Revolution](https://revolution.themepunch.com/)
86
  * [Viba Portfolio](https://codecanyon.net/item/viba-portfolio-wordpress-plugin/9561599)
87
+ * [MailPress](https://www.mailpress.org/)
88
+ * [Asgaros Forum](https://www.asgaros.de/)
89
 
90
  ### Build Status
91
  [![Build Status](https://travis-ci.org/lesterchan/wp-sweep.svg?branch=master)](https://travis-ci.org/lesterchan/wp-sweep) [![Code Climate](https://codeclimate.com/github/lesterchan/wp-sweep/badges/gpa.svg)](https://codeclimate.com/github/lesterchan/wp-sweep) [![Issue Count](https://codeclimate.com/github/lesterchan/wp-sweep/badges/issue_count.svg)](https://codeclimate.com/github/lesterchan/wp-sweep)
100
  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.
101
 
102
  ## Changelog
103
+ ### 1.1.1
104
+ * NEW: `wp_sweep_excluded_termids` filter.
105
+
106
  ### 1.1.0
107
  * NEW: Added WP Rest API Endpoint support, `sweep/v1/count/<Name>`, `sweep/v1/details/<Name>`, and `sweep/v1/sweep/<Name>`
108
  * FIXED: Follow as close as possible to WordPress Coding Standards
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.0
13
  Author: Lester 'GaMerZ' Chan
14
  Author URI: https://lesterchan.net
15
  Text Domain: wp-sweep
@@ -17,7 +17,7 @@ License: GPL2
17
  */
18
 
19
  /*
20
- Copyright 2018 Lester Chan (email : lesterchan@gmail.com)
21
 
22
  This program is free software; you can redistribute it and/or modify
23
  it under the terms of the GNU General Public License, version 2, as
@@ -38,7 +38,7 @@ License: GPL2
38
  *
39
  * @since 1.0.0
40
  */
41
- define( 'WP_SWEEP_VERSION', '1.1.0' );
42
 
43
  /**
44
  * WP Rest API
@@ -860,7 +860,8 @@ class WPSweep {
860
  if ( ! is_array( $parent_term_ids ) ) {
861
  $parent_term_ids = array();
862
  }
863
- return array_merge( $default_term_ids, $parent_term_ids );
 
864
  }
865
 
866
  /**
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.1
13
  Author: Lester 'GaMerZ' Chan
14
  Author URI: https://lesterchan.net
15
  Text Domain: wp-sweep
17
  */
18
 
19
  /*
20
+ Copyright 2019 Lester Chan (email : lesterchan@gmail.com)
21
 
22
  This program is free software; you can redistribute it and/or modify
23
  it under the terms of the GNU General Public License, version 2, as
38
  *
39
  * @since 1.0.0
40
  */
41
+ define( 'WP_SWEEP_VERSION', '1.1.1' );
42
 
43
  /**
44
  * WP Rest API
860
  if ( ! is_array( $parent_term_ids ) ) {
861
  $parent_term_ids = array();
862
  }
863
+ $excluded_termids = array_merge( $default_term_ids, $parent_term_ids );
864
+ return apply_filters( 'wp_sweep_excluded_termids', $excluded_termids );
865
  }
866
 
867
  /**