Plugin Directory

Changeset 3492729


Ignore:
Timestamp:
03/27/2026 02:20:59 PM (2 days ago)
Author:
financeweb
Message:

Fixed issue where completed package from source site was showing as "In Progress" on newly installed site

Location:
migratico-lite
Files:
50 added
4 edited

Legend:

Unmodified
Added
Removed
  • migratico-lite/trunk/CHANGELOG.md

    r3492726 r3492729  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## [2.4.7] - 2026-03-27
     9
     10### Fixed
     11- **Critical: Installer cleanup:** After successful installation, installer now deletes entire `package_*` directory from `wp-content/uploads/migratico/`
     12- **Admin UI:** Fixed issue where completed package from source site was showing as "In Progress" on newly installed site
     13- **Expected behavior:** After installation, plugin admin should show empty package list (no packages), not incomplete export from source site
     14
     15### Technical Details
     16- Added deletion of `package_*` directories in `delete_installer_files()` function
     17- Installer now removes all traces of the installation package after successful migration
     18- Clean state for plugin on newly installed site
    719
    820## [2.4.6] - 2026-03-27
  • migratico-lite/trunk/README.txt

    r3492726 r3492729  
    55Requires at least: 5.3
    66Tested up to: 6.9
    7 Stable tag: 2.4.6
     7Stable tag: 2.4.7
    88Requires PHP: 7.4
    99License: GPLv2 or later
  • migratico-lite/trunk/installer/installer.tpl

    r3488122 r3492729  
    1313
    1414define( 'MIGRATICO_INSTALLER', true );
    15 define( 'MIGRATICO_INSTALLER_VERSION', '2.4.4' );
     15define( 'MIGRATICO_INSTALLER_VERSION', '2.4.7' );
    1616
    1717// Check PHP version
     
    11451145            if (migratico_delete_file($token_file)) {
    11461146                $deleted[] = 'installer-token.txt';
     1147            }
     1148        }
     1149       
     1150        // Smazat celý adresář package_* z wp-content/uploads/migratico/
     1151        // Tento adresář obsahuje package.json a další soubory z exportu
     1152        // Po instalaci by v administraci pluginu neměly být žádné balíčky
     1153        $wp_root = $this->get_wp_root_dir();
     1154        $uploads_dir = $wp_root . '/wp-content/uploads/migratico/';
     1155        if (is_dir($uploads_dir)) {
     1156            $package_dirs = glob($uploads_dir . 'package_*', GLOB_ONLYDIR);
     1157            foreach ($package_dirs as $package_dir) {
     1158                if (is_dir($package_dir)) {
     1159                    // Smazat všechny soubory v adresáři
     1160                    $files = glob($package_dir . '/*');
     1161                    foreach ($files as $file) {
     1162                        if (is_file($file)) {
     1163                            migratico_delete_file($file);
     1164                        }
     1165                    }
     1166                    // Smazat samotný adresář
     1167                    if (@rmdir($package_dir)) {
     1168                        $deleted[] = basename($package_dir);
     1169                        $this->add_log('info', 'Deleted package directory: ' . basename($package_dir));
     1170                    } else {
     1171                        $errors[] = 'Failed to delete package directory: ' . basename($package_dir);
     1172                    }
     1173                }
    11471174            }
    11481175        }
  • migratico-lite/trunk/migratico.php

    r3492726 r3492729  
    44 * Plugin URI: https://migratico.com
    55 * Description: Simple and reliable WordPress migration plugin. Exports database and files, splits large sites into smaller parts, and provides an easy installation wizard.
    6  * Version: 2.4.6
     6 * Version: 2.4.7
    77 * Author: Miroslav Novotny
    88 * Author URI: https://superweby.cz
     
    1515 */
    1616
    17 // Verze: 2.4.4
    18 // Datum: 2026-03-22
    19 // Update: README.txt screenshots section updated
     17// Verze: 2.4.7
     18// Datum: 2026-03-27
     19// Fix: Installer now deletes package_* directory after installation to prevent showing incomplete packages in admin
    2020
    2121if (!defined('ABSPATH')) {
     
    2424
    2525// Definice konstant
    26 define('MIGRATICO_VERSION', '2.4.6');
     26define('MIGRATICO_VERSION', '2.4.7');
    2727define('MIGRATICO_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2828define('MIGRATICO_PLUGIN_URL', plugin_dir_url(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.