Plugin Directory

Changeset 3164263


Ignore:
Timestamp:
10/07/2024 01:06:09 PM (17 months ago)
Author:
ali2woo
Message:

new plugin release

Location:
ali2woo-lite/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • ali2woo-lite/trunk/alinext-lite.php

    r3159867 r3164263  
    66Text Domain: ali2woo
    77Domain Path: /languages
    8 Version: 3.4.4
    9 Author: Ali2Woo Team
     8Version: 3.4.5
     9Author: Dropshipping Guru
    1010Author URI: https://ali2woo.com/dropshipping-plugin/
    1111License: GPLv3
  • ali2woo-lite/trunk/changelog.txt

    r3159867 r3164263  
    298298* Fix issue causing Wordfence notice
    299299
     3003.4.5
     301* Enhance settings transfer module
     302* Fix minor bugs
     303
  • ali2woo-lite/trunk/includes/classes/controller/BlankConverter.php

    r3107543 r3164263  
    1414    public function __construct()
    1515    {
    16         if(!apply_filters('a2wl_converter_installed', false)){
    17             parent::__construct(esc_html__('Migration Tool', 'ali2woo'), esc_html__('Migration Tool', 'ali2woo'), 'import', 'a2wl_converter', 1000);
     16        if (!apply_filters('a2wl_converter_installed', false)) {
     17            parent::__construct(
     18                    esc_html__('Migration Tool', 'ali2woo'),
     19                    esc_html__('Migration Tool', 'ali2woo'),
     20                    'import',
     21                    'a2wl_converter',
     22                    1000
     23            );
    1824        }
    1925    }
    2026
    21     public function render($params = array())
     27    public function render($params = [])
    2228    {
    2329        ?>
     
    2834    }
    2935}
    30 
  • ali2woo-lite/trunk/includes/classes/controller/TransferPageController.php

    r3159867 r3164263  
    1313class TransferPageController extends AbstractAdminPage
    1414{
     15    public const FIELD_HASH = "hash";
     16
    1517    public function __construct()
    1618    {
     
    2830
    2931        $this->saveHandler();
    30         $this->model_put("hash", $this->getSettingsString());
     32        $this->model_put(self::FIELD_HASH, $this->getSettingsString());
    3133        $this->include_view("transfer.php");
    3234    }
     
    3537    {
    3638        $settings = get_option('a2wl_settings', []);
     39        $settingsJson = json_encode($settings);
    3740
    38         return base64_encode(serialize($settings));
     41        return base64_encode($settingsJson);
    3942    }
    4043
    4144    private function saveHandler(): void
    4245    {
    43         if (isset($_POST['transfer_form']) && !empty($_POST['hash'])) {
     46        if (isset($_POST['transfer_form']) && !empty($_POST[self::FIELD_HASH])) {
    4447            check_admin_referer(self::PAGE_NONCE_ACTION, self::NONCE);
    4548
    46             $hash = base64_decode($_POST['hash']);
     49            $settingsJson = base64_decode($_POST[self::FIELD_HASH]);
    4750
    48             if (!$hash) {
     51            if (!$settingsJson) {
    4952                $this->model_put("error",
    5053                    esc_html_x('Hash is not correct', 'error text', 'ali2woo')
     
    5457            }
    5558
    56             $settings = unserialize($hash, ['allowed_classes' => false]);
     59            $settings = json_decode($settingsJson, true);
    5760
    5861            if (!$settings) {
  • ali2woo-lite/trunk/includes/classes/utils/Migrate.php

    r2937267 r3164263  
    1111namespace AliNext_Lite;;
    1212
    13 class Migrate {
     13class Migrate
     14{
    1415    public function __construct() {
    1516        $this->migrate();
    1617    }
    1718   
    18     public function migrate(){
     19    public function migrate(): void
     20    {
    1921        $cur_version = get_option('a2wl_db_version', '');
    20         if(version_compare($cur_version, "3.0.8", '<')) {
     22        if (version_compare($cur_version, "3.0.8", '<')) {
    2123            $this->migrate_to_308();
    2224        }
    2325
    24         if(version_compare($cur_version, A2WL()->version, '<')) {
     26        if (version_compare($cur_version, A2WL()->version, '<')) {
    2527            update_option('a2wl_db_version', A2WL()->version, 'no');
    2628        }
    2729    }
    2830
    29     private function migrate_to_308(){
     31    private function migrate_to_308(): void
     32    {
    3033        a2wl_error_log('migrate to 3.0.8');
    3134        ProductShippingMeta::clear_in_all_product();;
  • ali2woo-lite/trunk/readme.txt

    r3159867 r3164263  
    308308
    309309== Changelog ==
     310= 3.4.5 - 2024.10.07 =
     311* Enhance settings transfer module
     312* Fix minor bugs
    310313
    311314= 3.4.4 - 2024.09.30 =
     
    383386* fix chrome extension connection bug
    384387* increase daily quota for order place and sync operations to 20 per day (for the lite plugin version)
    385 
    386 = 3.2.0 - 2024.01.10 =
    387 * add feature to synchronize selected orders (see bulk actions)
    388 * refactor plugin code to improve performance
    389 * fix minor bugs and errors
    390388== Upgrade Notice ==
    391389
  • ali2woo-lite/trunk/view/transfer.php

    r3107543 r3164263  
     1<?php
     2/**
     3 * @var string $hash
     4 */
     5use AliNext_Lite\AbstractAdminPage;
     6?>
    17<div class="a2wl-content">
    2     <h1><?php use AliNext_Lite\AbstractAdminPage;
    3 
     8    <h1><?php
    49         esc_html_e('Transfer settings', 'ali2woo'); ?></h1>
    510    <form class="a2wl-transfer" method="post">
     
    1015                <div class="field__label"><?php echo esc_html__('Paste a hash from another site to update settings', 'ali2woo'); ?></div>
    1116                <div class="field__input-wrap">
    12                     <textarea class="field__input" name="hash" placeholder="<?php echo esc_html__('Paste your hash', 'ali2woo'); ?>" rows="10"><?php
    13                         echo esc_html__($hash);
    14                         ?></textarea>
     17                    <textarea class="field__input" name="hash" placeholder="<?php echo esc_html__('Paste your hash', 'ali2woo'); ?>" rows="10">
     18                        <?php echo esc_html__($hash); ?>
     19                    </textarea>
    1520                </div>
    1621            </div>
Note: See TracChangeset for help on using the changeset viewer.