You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code quality maintenance release applying all findings from the internal
code review:
- Extract MSTV_Binary_Stream trait to eliminate the stream_absolute_file()
duplication between download and preview handlers
- Add server-side error_log() diagnostics for file-not-readable and
stream-failure conditions in download and preview (server log only)
- Move storage notice dismiss script from inline <script> to a dedicated
admin-notice-dismiss.js asset enqueued via wp_enqueue_script() and
wp_localize_script(); improves CSP compatibility
- Cache orphaned-file count in a short-lived transient on the settings
page to avoid O(n) filesystem stats on every page load; invalidated
after cleanup
- Extract build_audit_csv_row() private method from handle_export_audit_csv()
- Add PHPDoc to security-critical filesystem methods (verify_path,
get_verified_path, path_has_symlink) and bootstrap entry points
- Apply PHP 8.0 type hints (array, mixed) to MSTV_Settings properties
and method signatures; replace last stripslashes() with wp_unslash()
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
10
10
Private document workspace for WordPress teams, agencies, and operations that need controlled file sharing outside the Media Library.
11
11
12
-
Current plugin version: `2.6.1`.
12
+
Current plugin version: `2.6.2`.
13
13
14
14
If TeamVault is useful to you, consider [sponsoring the project on GitHub](https://github.com/sponsors/TheStreamCode) — it is developed and maintained for free, and sponsorships help keep it going.
Copy file name to clipboardExpand all lines: changelog.txt
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,15 @@ Mikesoft TeamVault Changelog
2
2
3
3
Entries are ordered newest first. Release dates are included where recorded.
4
4
5
+
## 2.6.2 - 2026-06-10
6
+
- Code quality: extracted shared binary streaming logic into a reusable `MSTV_Binary_Stream` trait, eliminating duplicate `stream_absolute_file()` implementations across download and preview handlers.
7
+
- Code quality: added server-side `error_log()` diagnostics for file-not-readable and stream-failure conditions in download and preview handlers; errors go to the server log only, not to the user.
8
+
- Code quality: moved the storage security notice dismiss script from an inline `<script>` block to a dedicated `admin-notice-dismiss.js` asset loaded with `wp_enqueue_script()` and `wp_localize_script()`; improves compatibility with strict Content Security Policy headers.
9
+
- Performance: cached the orphaned-file count in a short-lived transient so the settings page does not repeat a filesystem stat per database record on every load; the cache is invalidated immediately after running orphan cleanup.
10
+
- Code quality: extracted the audit CSV row builder into a dedicated private method `build_audit_csv_row()` in the admin class.
11
+
- Code quality: added PHPDoc to the security-critical filesystem methods (`verify_path`, `get_verified_path`, `path_has_symlink`) and the bootstrap entry points (`init`, `init_services`, `init_rest_api`).
12
+
- Code quality: applied PHP 8.0 type hints (`array`, `mixed`) to the untyped `MSTV_Settings` properties and method signatures; replaced the last `stripslashes()` call with the canonical `wp_unslash()`.
13
+
5
14
## 2.6.1 - 2026-06-09
6
15
- Admin UI: added a discreet Sponsor link to the plugin row on the Plugins screen and a "Support the project" line in the TeamVault settings Information box. Both stay inside plugin-owned surfaces, with no dashboard-wide notices. TeamVault remains free with all governance features included; sponsorships support continued development.
7
16
- Code quality: annotated the governance repository queries (filtered activity log queries and the dynamic IN() placeholder list) for the WordPress Plugin Check static analysis. Comment-only changes with no runtime behavior differences.
0 commit comments