Skip to content

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

Open
kodinkat wants to merge 4 commits intoDiscipleTools:masterfrom
kodinkat:3-dt-migration-plugin-tidy-up-and-version-control
Open

D.T Migration Plugin Tidy Up & Version Control#4
kodinkat wants to merge 4 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.
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

1 participant