开发者 |
drywallbmb
kenjigarland xavierserranoa |
---|---|
更新时间 | 2024年12月3日 23:45 |
PHP版本: | 4.3 及以上 |
WordPress版本: | 6.7.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
media-deduper
directory to your plugins directory (typically wp-content/plugins)Media Deduper looks at the original file uploaded to each attachment post and computes a unique hash (using md5) for that file. Those hashes are stored as postmeta information. Once a file's hash is computed it can be compared to other files' hashes to see if their data is an exact match.
Because there's no way of knowing which of the duplicates is the "real" or "best" one based on your preferred metadata, etc.
NO! Because the list includes every copy of your duplicates, you'll likely always want to save one version, so using Delete Permanently to delete all of them would be very, very bad. Don't do that. You've been warned. Instead, we recommend using the Smart Delete action (which is also found in the Bulk Actions menu). Smart Delete will delete the selected items one by one, and refuse to delete an item if it has no remaining duplicates. For example, if you have three copies of an image, and you select all three and choose Smart Delete, two copies will be deleted and the third will be skipped. Again, we strongly recommend backing up your data before performing any bulk delete operations, including Smart Delete.
At this time, Media Deduper only identifies and blocks duplicate media files manually uploaded via the admin dashboard -- it does not block duplicates that are imported via WP-CLI or the WordPress Importer plugin.
The free version does not include plugin support. Media Deduper Pro integrates with a number of popular plugins, including WooCommerce and Yoast SEO.
The git repository should be publicly available at https://bitbucket.org/cornershopcreative/plugin_media-deduper. Feel free to fork, edit, make pull requests, etc.
active_plugins
option or the output of the get_plugins()
function.is_trash
is not declared.").set-screen-option
hook, and we haven't run into this issue in the wild, but now it's fixed anyway.