Skip to content

Releases: wp-document-revisions/wp-document-revisions

v3.6.0

19 Mar 21:30
ffad4c1
Compare
Choose a tag to compare
  • NEW: Integrate with PublishPress Statuses plugin for custom statuses. (#335)
  • NEW: Accessibility rules states that links to PDF documents should have visible references. Blocks have an explicit switch. (#322)
  • NEW: User pulldowns will show only relevant users. (#321)
  • NEW: Filter 'document_post_thumbnail' used to define the post-thumbnail image size (if not set by theme). (#339)
  • NEW: Filter 'document_use_wp_filesystem' used to serve document (instead of PHP readfile). Irrelevant if the file is compressed on output. (#320)
  • NEW: Filter 'document_internal_filename' for updating internal file name additionally passed the original name. (#319)
  • NEW: Filter 'document_validate_md5' to switch off attachment MD5 format validation. (#318)
  • NEW: Optionally stop direct web access to document files to force access only via WordPress. (#317)
  • NEW: If a role already has "read_documents" capability, do not touch capabilities on plugin reactivation. (#315)
  • NEW: Filter 'document_home_url' to allow changes to be made to it (used with WPML). (#329)
  • FIX: Ensure File descriptor of Document Upload includes subdir component. (#342)
  • FIX: Use with plugin EditFlow gives PHP 8.0 error. (#331)
  • FIX: Typo in description of default upload location. (#328)
  • FIX: Filter 'document_revisions_owner' withdrawn as parameter acted on (who) deprecated in WP 5.9. (#316)
  • FIX: Updates to document description do not enable the Submit button
  • DEV: JS scripts will be called with Defer in WP 6.3 onwards. (#314)
  • DEV: Review for WP Coding standard 3.0 (#313)

v3.5.0

28 Feb 18:14
7d4157b
Compare
Choose a tag to compare
  • SECURITY: Rest media interface may expose document name.
  • NEW: Site can decide to save permalinks without year/month part.
  • NEW: Permalinks may be updated on the documents screen.
  • FIX: guid field for documents was generally incorrect. Will be stored as a valid value.
  • FIX: Upload directory processing reviewed and simplified.
  • FIX: Document permalink month can be incorrect when saved at month end. (#300).
  • FIX: Valid document may not be found.
  • FIX: Improve notification process when activation user does not have edit_documents capability.

3.4.0

24 Feb 14:46
254cb63
Compare
Choose a tag to compare
  • SECURITY: WordPress can create images for PDF documents which if used would leak the hidden document name so image name changed.
  • NEW: An action 'document_saved' is provided for processing after a document has been saved or updated and all plugin processing complete. (#278)
  • NEW: A filter 'document_serve_attachment' is provided to review the attachment id being served. Return false to stop display. (#278)
  • NEW: A filter 'document_show_in_rest' is provided to display document data via the REST interface using document permissions. {#258, #259)
  • NEW: A tool is provided to validate the internal structure of all documents that the user can edit. If fixable then a button is displayed to fix it. (#260)
  • NEW: A user-oriented description may be entered for each document. This can be displayed with the Documents List shortcode and Latest Documents widget or their block equivalents. (#263)
  • NEW: These blocks can also display the featured image or generated image for PDF documents. (#264)
  • NEW: Blocks extended to support standard Colour and Fontsize attributes. (#264}
  • NEW: Revisions can be merged if made within a user-defined interval using filter 'document_revisions_merge_revisions' (Default 0 = No merging). (#263)
  • FIX: jQuery ready verb usage removed. (#262}
  • FIX: Caching strategy reviewed to ensure updates delivered to users. (#261}
  • FIX: Blocks used incorrect, but previously tolerated, parameter for RadioControls rendering them difficult to use.
  • FIX: Blocks are categorised within the Editor differently with 5.8

3.3.1

11 Jun 23:07
099371d
Compare
Choose a tag to compare
  • FIX: Content-Length header suppressed for HTTP/2 File Serve. {#254)
  • FIX: MOD_DEFLATE modifies etag, so no caching occurred in this case.
  • FIX: Gzip process invoked for encodings gzip, x-gzip and deflate.

3.3.0

11 Jun 23:06
cdabb0b
Compare
Choose a tag to compare
  • SECURITY: Password-protected document can leak existence (by showing next/previous)
  • SECURITY: Queries on post_status do not do proper permissions check
  • SECURITY: Suppress excerpt output in feeds to stop information leakage
  • SECURITY: WP creates images when saving PDF documents (using the encoded name). These were being left when deleting the document.
  • NEW: Rewrite rules extended to access documents without year/month and/or file extension. (#253) @NeilWJames
  • NEW: Use standard WP process for Taxonomy workflow_state on Document Admin List. Note that it will change the column order seen as taxonomiees are on the end.
  • NEW: Implement Gutenberg Blocks for Shortcodes and Widget.
  • NEW: Integrate with either Edit-flow or PublishPress plugins
  • NEW: Taxonomy workflow_state is set as show_in_rest.
  • NEW: Add action 'document_serve_done' which can be use to delete decrypted files (needed for encrypted at rest files)
  • NEW: Add filter 'document_buffer_size' to define file writing buffer size (Default 0 = No buffering).
  • NEW: Add filter 'document_output_sent_is_ok' to serve file even if output already written.
  • NEW: Add filter 'document_read_uses_read' to use read_document capability (and not read) to read documents
  • NEW: Add filter 'document_serve_use_gzip' to determine if gzip should be used to serve file (subject to browser negotiation).
  • NEW: Add filter 'document_serve' to filter the file to be served (needed for encrypted at rest files)
  • NEW: New Crowdin updates (#244, #245)
  • FIX: Access to revisions when permalink structure not defined.
  • FIX: Design conflict with Elementor (#230) @NeilWJames
  • FIX: Document directory incorrect test for Absolute/Relative entry on Windows implementations
  • FIX: Document Taxonomies using default term counts will use same method as WORKFLOW_STATE, i.e. count all not-trashed documents
  • FIX: Ensure the action point to detect change in workflow_state worked (for CookBook functionality).
  • FIX: Fix error in time difference display when client and server are in different time zones
  • FIX: Fix WP 5.7 Breaking change (#38843) for Term Counts. (#250) @NeilWJames
  • FIX: Remove existing workaround for WP bug 16215 and long time fixed - and made information incorrect
  • FIX: Remove restore option on the current document and latest revision as it makes no sense.
  • FIX: Review document serving process to try to identify where other plugins could output text and corrupt file download
  • FIX: Review documentation. (#208) @NeilWJames
  • FIX: Review of Rewrite rules with/without trailing slash; also extend file extension length
  • FIX: Testing of blocks showed that if document taxonomies are changed, then existing blocks may not work. Some changes are now handled. (#217) @NeilWJames
  • FIX: Fixing compatibility issue with double slash in Documents URL when using WPML (#218) @BobbyKarabinakis
  • DEV: Update code to WP Coding Standards 2.2.1 (and fix new sniff errors)
  • DEV: Update coveralls to 2.2, dealerdirect/codesniffer to 0.6, phpunit/phpunit to 8.5 and wp/cli to 2.4.1
  • DEV: Rewrite Test library to increase code coverage.
  • DEV: Use GitHub Actions for CI (#251)
  • DEV: Fixed wp_die() tests ending tests prematurely (#252)

3.2.4

27 Nov 18:57
3092100
Compare
Choose a tag to compare

3.2.2

23 Apr 13:58
24c4639
Compare
Choose a tag to compare

3.2.1

14 Jan 17:27
8c878dc
Compare
Choose a tag to compare

v3.2.0

09 Jan 23:03
627a444
Compare
Choose a tag to compare

v3.1.2

26 Feb 16:31
105c638
Compare
Choose a tag to compare

Fix for 404 error when serving documents from non-standard upload directory.