This commit introduces a more reliable and consistent approach to setting up the development environment using backups: - Add setup-from-backup.sh script for environment setup from existing backups - Standardize script naming and organization - Move obsolete scripts to bin/obsolete directory - Update documentation with new workflow instructions - Create migration guide for transitioning to new workflow - Update Memory Bank with workflow improvements The new workflow provides: - More reliable environment setup - Faster setup process - Offline development capability - Consistent development environments across team members Breaking changes: - setup-dev.sh is replaced by setup-from-backup.sh - sync-and-setup.sh is replaced by separate scripts - verify-with-wpcli.sh is no longer used Migration path is documented in MIGRATION_GUIDE.md
35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Astra Sites Uninstall
|
|
*
|
|
* @package Astra Sites
|
|
*/
|
|
|
|
defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
|
|
|
|
$site_pages = get_option( 'astra-sites-requests' );
|
|
if ( ! empty( $site_pages ) ) {
|
|
|
|
// Delete all sites.
|
|
for ( $site_page = 1; $site_page <= $site_pages; $site_page++ ) {
|
|
delete_site_option( 'astra-sites-and-pages-page-' . $site_page );
|
|
}
|
|
|
|
// Delete all pages count.
|
|
delete_site_option( 'astra-sites-requests' );
|
|
}
|
|
|
|
delete_option( 'astra_sites_recent_import_log_file' );
|
|
delete_option( 'astra_sites_import_data' );
|
|
delete_option( 'astra_sites_wpforms_ids_mapping' );
|
|
delete_option( '_astra_sites_old_customizer_data' );
|
|
delete_option( '_astra_sites_old_site_options' );
|
|
delete_option( '_astra_sites_old_widgets_data' );
|
|
delete_option( 'astra_sites_settings' );
|
|
delete_option( 'astra_parent_page_url' );
|
|
delete_option( 'astra-sites-favorites' );
|
|
delete_site_option( 'astra-sites-fresh-site' );
|
|
delete_site_option( 'astra-sites-batch-status' );
|
|
delete_site_option( 'astra-sites-batch-status-string' );
|
|
delete_site_option( 'astra-sites-all-site-categories' );
|
|
delete_site_option( 'astra-sites-all-site-categories-and-tags' );
|