Skip to content

Release v1.9.1

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Sep 00:00
· 11 commits to main since this release
9d2dfbc

Scheduled Deletion System Enhancements

  • Enhanced Debugging: Added comprehensive debugging system with error_log() output for WordPress cron troubleshooting when standard debug logging is disabled
  • Dual Cleanup System: Implemented redundant scheduled deletion with both individual file cleanup (5 minutes) and bulk directory cleanup (10 minutes) as safety net
  • Bulk Cleanup Handler: Added sse_bulk_cleanup_exports_handler() to scan and clean all export files older than 5 minutes from the entire export directory
  • Improved Scheduling: Enhanced sse_schedule_export_cleanup() with detailed logging, DISABLE_WP_CRON detection, and WordPress cron array status monitoring
  • Test Framework: Added sse_test_cron_scheduling() function to verify WordPress cron functionality before attempting real scheduling
  • Cron Diagnostics: Implemented sse_get_scheduled_deletions() for debugging scheduled events and cron system status
  • Verification System: Added post-scheduling verification to confirm events are properly added to WordPress cron schedule

Code Quality Improvements

  • WordPress VIP Compliance: Replaced direct PHP filesystem function is_writable() with WordPress Filesystem API (WP_Filesystem) for VIP coding standards compliance
  • Filesystem API Integration: Added proper WordPress filesystem initialization with error handling in export preparation function
  • Code Style: Fixed variable alignment inconsistencies in sse_test_cron_scheduling() function to maintain consistent spacing standards

Bug Fixes

  • Scheduled Deletion: Resolved issue where export files were not being automatically deleted due to WordPress cron scheduling failures
  • Fallback System: Removed unnecessary fallback methods as requested, streamlining the system to use only WordPress cron
  • Error Logging: Improved error visibility by adding direct error_log() output for cron debugging when WordPress debug settings are disabled
  • Export Directory Consistency: Centralized export directory naming via SSE_EXPORT_DIR_NAME constant to eliminate mismatched cleanup paths and ensure all subsystems reference the same location
  • Filesystem Validation: Added explicit directory creation and writability checks with helpful error messaging when the exports folder can't be prepared
  • CI Database Service: Replaced the GitHub Actions MySQL 5.7 test container with MariaDB 10.6 to avoid Docker Hub authentication failures while maintaining WordPress compatibility coverage

Installation

  1. Download the zip file
  2. Upload to your WordPress site through the Plugins > Add New > Upload menu
  3. Activate the plugin

Full Documentation