Plugin Directory

Changeset 3716666


Ignore:
Timestamp:
09/28/2026 08:37:25 AM (4 weeks ago)
Author:
gididreamvps
Message:

0.6.2: shops get a warning and maintenance mode pre-ticked

Location:
one-click-migration/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • one-click-migration/trunk/clickpress-migration.php

    r3716629 r3716666  
    44 * Plugin Name: ClickPress Migration
    55 * Description: Migrate your free website automatically to ClickPress.
    6  * Version: 0.6.1
     6 * Version: 0.6.2
    77 * Requires at least: 5.6
    88 * Requires PHP: 7.4
  • one-click-migration/trunk/consts.php

    r3716629 r3716666  
    11<?php
    22const ENV = "production";
    3 const CLICKPRESS_MIGRATION_VERSION = "0.6.1";
     3const CLICKPRESS_MIGRATION_VERSION = "0.6.2";
    44const LOWEST_SUPPORTED_VERSION = "7.4";
    55const HIGHEST_SUPPORTED_VERSION = "8.3";
  • one-click-migration/trunk/readme.txt

    r3716629 r3716666  
    33Requires at least: 5.6
    44Tested up to: 6.6.1
    5 Stable tag: 0.6.1
     5Stable tag: 0.6.2
    66Requires PHP: 7.4
    77License: GPLv2 or later
    … …  
    7878== Changelog ==
    7979
     80= 0.6.2 =
     81* Shops: when WooCommerce is active, the migration page warns that orders placed during the migration may not be copied, and ticks maintenance mode by default. You can untick it.
     82
    8083= 0.6.1 =
    8184* Fix: empty (NULL) database values are now copied as NULL. Before, they became "" or 0 — which broke WooCommerce guest customers and silently changed other data.
  • one-click-migration/trunk/src/lang.php

    r3506812 r3716666  
    205205        "he_IL" => "גירסת תוסף: {1}"
    206206    ),
     207    "shop-detected-warning" => array(
     208        "en_US" => "Your website is a shop. Orders placed while the migration runs may not be copied, or may be copied only in part. We ticked maintenance mode for you: your store is closed to visitors until the migration ends. You can untick it.",
     209        "he_IL" => "האתר שלכם הוא חנות. הזמנות שיתקבלו בזמן ההעברה עלולות לא לעבור, או לעבור רק בחלקן. סימנו עבורכם מצב תחזוקה: החנות תהיה סגורה למבקרים עד סוף ההעברה. אפשר לבטל את הסימון."
     210    ),
    207211    "existing-site-id" => array(
    208212        "en_US" => "Existing site id",
  • one-click-migration/trunk/src/migration-page/html.php

    r3715349 r3716666  
    6464);
    6565
     66// 0.6.2: a shop can take orders while its database is being exported, and an
     67// order placed mid-export can arrive half-copied. So for WooCommerce sites the
     68// page warns and ticks maintenance mode by default (Afaf, 2026-09-28); the
     69// customer can untick it.
     70$clickpressIsShop = class_exists("WooCommerce");
     71
    6672$checkboxes = array(
    6773    "move-to-maintenance" => array(
    … …  
    168174                    <div class="mainDescription"><?php clickpress_migration_e("use-migration-plugin-transfer-websites") ?></div>
    169175
     176                    <?php if ($clickpressIsShop) { ?>
     177                        <div class="shopWarning" style="background:#fff8e1;border:1px solid #f0c36d;border-radius:8px;padding:12px 16px;margin:16px auto;max-width:560px;text-align:start;">
     178                            <?php clickpress_migration_e("shop-detected-warning") ?>
     179                        </div>
     180                    <?php } ?>
     181
    170182                    <div class="checkboxes">
    171183                        <?php
    … …  
    173185                            ?>
    174186                            <label>
    175                                 <input type="checkbox" id="<?php echo $id ?>"/>
     187                                <input type="checkbox" id="<?php echo $id ?>"<?php echo ($clickpressIsShop && $id === "move-to-maintenance") ? " checked" : "" ?>/>
    176188                                <div class="checkbox">
    177189                                    <?php clickpress_img("v") ?>
Note: See TracChangeset for help on using the changeset viewer.