Skip to content

Conversation

@soderlind
Copy link
Owner

This pull request introduces several improvements and fixes to the Multisite Exporter plugin, focusing on error handling, export progress tracking, and adherence to WordPress best practices. The most significant changes include adding AJAX-based export progress tracking, improving filesystem initialization, renaming menu items for clarity, and updating documentation.

Export Progress Tracking Enhancements:

  • Added AJAX handlers (check_scheduled_exports and check_scheduled_progress) to track export progress and provide real-time updates in the admin interface. [1] [2]
  • Introduced a new update_export_progress method to store and update export progress data in network options.
  • Updated the history page (view-history-page.php) to display active export progress and auto-refresh during ongoing exports. [1] [2] [3]

Filesystem Initialization Improvements:

  • Modified the get_export_directory and process_site_export_callback methods to use the WordPress filesystem API for secure file operations. Added error logging for failed filesystem initialization. [1] [2]

Admin Interface Updates:

  • Renamed "Export History" to "Exports" in menu items and UI for better clarity. Updated related links and messages to use network_admin_url for multisite compatibility. [1] [2] [3]

Debugging and Documentation:

  • Added a new "Debugging" section to the README.md, explaining error logging practices and how to enable debug mode.
  • Embedded a demo video in the README.md to showcase plugin functionality.

Bug Fixes:

  • Fixed network admin URL links in view-history-page.php and view-main-page.php to resolve "Sorry, you are not allowed to access this page" errors.

- Implemented JavaScript functionality to track and display the progress of scheduled exports.
- Added AJAX calls to check for active exports and retrieve progress updates.
- Created UI elements for progress bar, percentage display, current site information, and scheduled info.
- Included logic to handle completion messages and optional redirection after export completion.
@soderlind soderlind merged commit 4216c6c into main May 7, 2025
2 checks passed
@soderlind soderlind deleted the add/progressbar branch May 14, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants