Skip to content

D.T Migration Plugin Tidy Up & Version Control#4

Merged
corsacca merged 5 commits intoDiscipleTools:masterfrom
kodinkat:3-dt-migration-plugin-tidy-up-and-version-control
Apr 14, 2026
Merged

D.T Migration Plugin Tidy Up & Version Control#4
corsacca merged 5 commits intoDiscipleTools:masterfrom
kodinkat:3-dt-migration-plugin-tidy-up-and-version-control

Conversation

@kodinkat
Copy link
Copy Markdown
Collaborator


Update Disciple.Tools Migration plugin to version 1.0.0

  • Revamped plugin description to clarify functionality for exporting and importing settings and records via REST API or JSON.
  • Updated version number to 1.0.0 and tested compatibility up to WordPress 6.7.
  • Removed deprecated spinner.svg and several unused files related to charts and magic links to streamline the plugin.
  • Enhanced user migration functionality, allowing for better handling of administrator roles during import.
  • Improved export tab messaging and added conditional filters for record exports.
  • Refactored code for better readability and maintainability, including updates to the admin interface and REST API integration.
Screenshot 2026-03-31 at 14 19 10 Screenshot 2026-03-31 at 14 17 52

- Revamped plugin description to clarify functionality for exporting and importing settings and records via REST API or JSON.
- Updated version number to 1.0.0 and tested compatibility up to WordPress 6.7.
- Removed deprecated spinner.svg and several unused files related to charts and magic links to streamline the plugin.
- Enhanced user migration functionality, allowing for better handling of administrator roles during import.
- Improved export tab messaging and added conditional filters for record exports.
- Refactored code for better readability and maintainability, including updates to the admin interface and REST API integration.
- Simplified data sanitization in the export download class by introducing a new method for processing POST arrays.
- Enhanced SQL query preparation in the export file class for better security and performance.
- Improved data display in the import and export tabs by ensuring proper HTML escaping for counts and labels.
- Added comments for clarity and disabled PHPCS warnings related to nonce verification in AJAX handlers.
- Updated PHPCS ignore comments in the export download class to include nonce verification warnings for better security practices.
- Simplified SQL query preparation in the export file class for enhanced readability and maintainability.
- Enhanced the get_record_ids method to improve SQL query preparation by consolidating conditions for fetching post IDs based on post type, status, and ID range.
- Improved readability and maintainability of the code by reducing redundancy in SQL query logic.
- Introduced a new preflight check feature to validate import selections before proceeding, enhancing user experience by providing advisory warnings.
- Added AJAX handling for preflight requests, allowing users to run checks for potential issues with selected settings and records.
- Updated the import UI to include buttons for running preflight checks and displaying results in a modal.
- Enhanced JavaScript functionality to manage preflight request flow and display relevant information and warnings to users.
- Created a new class for handling preflight analysis, ensuring non-destructive checks are performed on the import data.
@kodinkat
Copy link
Copy Markdown
Collaborator Author

kodinkat commented Apr 8, 2026

@corsacca review ready.....

Screenshot 2026-04-08 at 13 05 15 Screenshot 2026-04-08 at 13 35 06 Screenshot 2026-04-08 at 13 35 41 Screenshot 2026-04-08 at 13 36 10 Screenshot 2026-04-08 at 13 44 24

@corsacca
Copy link
Copy Markdown
Member

Thanks @kodinkat!

@corsacca corsacca merged commit 74bab6e into DiscipleTools:master Apr 14, 2026
2 checks passed
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.

D.T Migration Plugin Tidy Up & Version Control

2 participants