wp-sweep
Last commit date
js
9 years ago
admin.php
9 years ago
class-command.php
9 years ago
composer.json
10 years ago
index.php
9 years ago
readme.txt
9 years ago
uninstall.php
9 years ago
wp-sweep.php
9 years ago
readme.txt
125 lines
| 1 | === WP-Sweep === |
| 2 | |
| 3 | [](https://travis-ci.org/lesterchan/wp-sweep) [](https://codeclimate.com/github/lesterchan/wp-sweep) [](https://codeclimate.com/github/lesterchan/wp-sweep) |
| 4 | |
| 5 | Contributors: GamerZ |
| 6 | Donate link: http://lesterchan.net/site/donation/ |
| 7 | 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 |
| 8 | Requires at least: 4.4 |
| 9 | Tested up to: 4.7 |
| 10 | Stable tag: 1.0.9 |
| 11 | License: GPLv2 or later |
| 12 | License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 13 | |
| 14 | WP-Sweep allows you to clean up unused, orphaned and duplicated data in your WordPress. It also optimizes your database tables. |
| 15 | |
| 16 | == Description == |
| 17 | This plugin cleans up: |
| 18 | |
| 19 | * Revisions |
| 20 | * Auto drafts |
| 21 | * Deleted comments |
| 22 | * Unapproved comments |
| 23 | * Spammed comments |
| 24 | * Deleted comments |
| 25 | * Orphaned post meta |
| 26 | * Orphaned comment meta |
| 27 | * Orphaned user meta |
| 28 | * Orphaned term meta |
| 29 | * Orphan term relationships |
| 30 | * Unused terms |
| 31 | * Duplicated post meta |
| 32 | * Duplicated comment meta |
| 33 | * Duplicated user meta |
| 34 | * Duplicated term meta |
| 35 | * Transient options |
| 36 | * Optimizes database tables |
| 37 | * oEmbed caches in post meta |
| 38 | |
| 39 | This plugin uses proper WordPress delete functions as much as possible instead of running direct delete MySQL queries. |
| 40 | |
| 41 | Following delete functions are used: |
| 42 | |
| 43 | * wp_delete_post_revision() |
| 44 | * wp_delete_post() |
| 45 | * wp_delete_comment() |
| 46 | * delete_post_meta() |
| 47 | * delete_comment_meta() |
| 48 | * delete_user_meta() |
| 49 | * delete_term_meta() |
| 50 | * wp_remove_object_terms() |
| 51 | * wp_delete_term() |
| 52 | * delete_transient() |
| 53 | * delete_site_transient() |
| 54 | |
| 55 | = Development = |
| 56 | * [https://github.com/lesterchan/wp-sweep](https://github.com/lesterchan/wp-sweep "https://github.com/lesterchan/wp-sweep") |
| 57 | |
| 58 | = Credits = |
| 59 | * Plugin icon by [Freepik](http://www.freepik.com) from [Flaticon](http://www.flaticon.com) |
| 60 | |
| 61 | = Donations = |
| 62 | 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. |
| 63 | |
| 64 | == Changelog == |
| 65 | = 1.0.9 = |
| 66 | * NEW: Support for Codeclimate |
| 67 | * FIXES: Uses `get_sites()` on WordPress 4.6. This should fix deprecated notices. |
| 68 | * FIXES: Fixes translation placeholder count. Props @pedro-mendonca. |
| 69 | * FIXES: Use `manage_options` capability as it conflicts with Admin Menu Editor on multisite installs. Props @EusebiuOprinoiu. |
| 70 | |
| 71 | = 1.0.8 = |
| 72 | * NEW: Added wp_sweep_excluded_taxonomies filter to allow more than just link_category taxonomy |
| 73 | * NEW: Support for WP-CLI `wp sweep` |
| 74 | |
| 75 | = 1.0.7 = |
| 76 | * FIXES: Use custom query to delete Orphaned Term Relationship if wp_remove_object_terms() fails |
| 77 | |
| 78 | = 1.0.6 = |
| 79 | * NEW: Delete 'languages' folder from the plugin |
| 80 | * NEW: Use translate.wordpress.org to translate the plugin |
| 81 | * FIXED: Works only with WordPress 4.4 because of new term meta |
| 82 | |
| 83 | = 1.0.5 = |
| 84 | * FIXED: apply_filters() wrong arguments |
| 85 | |
| 86 | = 1.0.4 = |
| 87 | * NEW: oEmbed caches in post meta Sweep |
| 88 | * NEW: Add POT file for translators |
| 89 | |
| 90 | = 1.0.3 = |
| 91 | * NEW: AJAX Sweep All |
| 92 | * NEW: AJAX Sweeping |
| 93 | * NEW: View details of sweep |
| 94 | * NEW: Optimize DB sweep |
| 95 | * NEW: User hint and confirmation. Props @SiamKreative |
| 96 | * FIXED: Division by zero. Pros @barisunver |
| 97 | |
| 98 | = 1.0.2 = |
| 99 | * FIXED: Use term_id for wp_remove_object_terms() |
| 100 | * FIXED: number_format_i18n() issues after sweeping |
| 101 | |
| 102 | = 1.0.1 = |
| 103 | * NEW: Moved plugin location to WP-Admin -> Tools -> Sweep |
| 104 | * NEW: Add Deleted Post Sweep |
| 105 | * FIXED: Use forced_delete for wp_delete_post() and wp_delete_comment(); |
| 106 | * FIXED: If orphaned meta has an object id of 0, use SQL query to delete |
| 107 | |
| 108 | = 1.0.0 = |
| 109 | * Initial release |
| 110 | |
| 111 | == Installation == |
| 112 | 1. Upload `wp-sweep` folder to the `/wp-content/plugins/` directory |
| 113 | 2. Activate the `WP-Sweep` plugin through the 'Plugins' menu in WordPress |
| 114 | 3. You can access `WP-Sweep` via `WP-Admin -> Tools -> Sweep` |
| 115 | |
| 116 | == Screenshots == |
| 117 | 1. WP-Sweep Administrator Page (Before Sweeping) |
| 118 | 2. WP-Sweep Administrator Page (Swept) |
| 119 | |
| 120 | == Frequently Asked Questions == |
| 121 | Coming soon ... |
| 122 | |
| 123 | == Upgrade Notice == |
| 124 | N/A |
| 125 |