WP Document Revisions changelog
By Ben Balter, on WordPress.org since 2011. 2,000+ active installs.
80 tagged releases, newest first. Dates are when each release was tagged in SVN. Notes come from the plugin's readme, which may not list every release.
-
- Security: on sites that block direct access to document files with the document_stop_file_access_pattern filter (off by default, Apache only), the block didn’t work. The .htaccess rule the plugin wrote never matched, so anyone who knew a document file’s stored name could still download it. The rule now matches, and the plugin rewrites .htaccess the next time someone loads a dashboard page. If WordPress can’t write your .htaccess file, save Settings > Permalinks to see the rules to copy in by hand. If you also use the document_serve_redirect_url filter to send readers to the file’s own address, the rule now blocks that redirect too (GHSA-27ff-q64q-m928). Thanks to @Suizer for reporting it.
- Security: a user who could edit other people’s posts but not a document, such as an Editor on a site that removed the document capabilities from Editors, could detach the document’s file through the WordPress media API. The file’s stored name and address were then shown to anyone. Editing or deleting a document’s file now also requires permission to edit or delete the document. Default roles aren’t affected (GHSA-2gvq-4h79-7hpx). Thanks to @Suizer for reporting it.
- Validate Structure now finds a newer upload that never became the document’s file, which happened in the rare cases fixed in 5.8.1, and offers to link it. Before, it listed that upload as an orphan, and fixing that deleted the file. The file it replaces stays in the revision history. (#860) Thanks to @NeilWJames.
- The revision count in the Document Library and in the Revisions column on the Documents screen no longer comes up one short after that fix, or for a document with no revisions. (#929, #932) Thanks to @NeilWJames for reporting it.
-
- Ready for WordPress 7.2. On sites that edit documents in the block editor (turned on with the document_use_block_editor filter), WordPress 7.2 would have saved an image uploaded as a document’s file, such as a JPG or PNG uploaded in Chrome, to the public uploads folder under its original name. Document screens now keep using the classic upload path, so the file gets the usual protected, hashed name. Sites using the classic editor, the default, and non-image files like PDFs weren’t affected. (#925)
- Tested up to WordPress 7.2. (#925)
-
- Email notifications can now be turned on on multisite. The notification settings on each site’s Media screen saved, but the plugin read them from the network instead, so they never took effect and the checkboxes appeared to reset. Settings a site saved before this release take effect once you update, so emails may start going out. (#906, #917) Thanks to @switchcasestudio.
- Images uploaded as a document’s featured image or into its description are no longer attached to the document as if they were document files. Before, Validate Structure could list them as inaccessible document files and offer to delete them. It now finds images attached this way in the past and offers to detach them instead, which leaves the images in the Media Library. Developers can adjust this with the new document_keep_media_parent and document_validate_doc_type filters. (#900) Thanks to @NeilWJames.
- Deleting the plugin on multisite now removes its settings and document capabilities from every site, not just the main site. (#919) Thanks to @switchcasestudio.
- The WordPress.org plugin page now has an FAQ tab. Its answers were checked against the current plugin, and it explains how to email readers when a document is published with the Email Notice add-on. (#904, #905, #907)
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.