This plugin allows attachments to be organised into folders on the server.
Attachments are physically moved into folders, and all references to them in pages and posts are updated accordingly.
Media Organiser was originally forked from version 1.4.2 of Media File Manager by Atsushi Ueda, and has been largely rewritten since then. It does not yet have the ‘media selector’ function of Media File Manager — in fact, the ‘new’ interface to choosing media is so poorly documented that I can’t work out how to use it. Any ideas?
There is also a tool on the plugin’s Settings page which allows attachments
whose files are missing from the file system to be tidied up.
- MySQL database engine that does transactions, otherwise things will get out of whack of something goes wrong when renaming files. Information on changing engines can be found on easyengine.io. The tables that are affected are
Icons adapted from github.com/iconic/open-iconic/.
- May not work on sites hosted on a Windows server — haven’t checked the use of directory separators yet.
- Does database transactions — so requires a database engine that can do commit/rollback, such as InnoDB.
- Does its best to make changes atomic, but things could go wrong if something changes in the middle of renaming files.
- No internationalization (yet).
- Doesn’t check if posts are already locked for editing before making changes to them, so it’s best to move and rename attachments when you’re sure that no-one else is working on any posts or pages that use those attachments.
Install the plugin in the usual way and activate it.
Administrators should get permission to use the plug-in automatically. Go to Settings / Media Organiser to give other roles permission to use it if required.
“Media Organiser” 是开源软件。 以下人员对此插件做出了贡献。贡献者
- Fixed an obscure bug by giving global variables even longer names. I really
need to avoid globals.
- Tested with WordPress 5.0.3.
- Added a feature on the Settings pages to allow any post attachments with
missing files to be deleted.
- Tested with WordPress 5.0.1.
- Tested with WordPress 4.9.1.
- Added code to cope with duplicated secondary files.
- Documented requirement for transaction-capable database engine.
- Automatically grant capabilities to administrators.
- Better CSS for small screens.
- Disable checkboxes if moving is not possible (i.e. name clash)
- Improvements to CSS and HTML
- Tweaks to documentation.
- Media Organiser admin page largely reworked. Media Selector section is not yet done.
- Meets current WordPress standards: uploaded to WordPress Plugin Directory.
- Forked from Media File Manager 1.4.2