Plugin Directory

Changeset 3065060


Ignore:
Timestamp:
04/04/2024 09:57:40 PM (2 years ago)
Author:
transferito
Message:

v10.4.1

Location:
transferito/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • transferito/trunk/readme.txt

    r3026523 r3065060  
    33Contributors: transferito
    44Tags: wordpress migration, migrate, move, wordpress transfer, clone, migrate wordpress, website migration
    5 Stable tag: 10.3.10
    6 Version: 10.3.10
     5Stable tag: 10.4.1
     6Version: 10.4.1
    77Requires at least: 4.7
    88Requires PHP: 5.6
    9 Tested up to: 6.4
     9Tested up to: 6.5
    1010License: GPLv3 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1212
    13 The easiest 1-Click WordPress Migration plugin that will migrate, clone, transfer and move your WordPress site to any host in seconds.== Description ==
     13The easiest 1-Click WordPress Migration plugin that will migrate, clone, transfer and move your WordPress site to any host in seconds.==== Description ==
    1414Transferito is a 1-Click WordPress Migration plugin that allows you to automatically transfer, migrate or clone a WordPress installation to a new location.
    1515
     
    146146== Changelog ==
    147147
     148= 10.4.0 - 04/04/24 =
     149
     150Added a checkbox on the settings page to bypass creating a backup using the command line
     151Added individual failure flags for better error reporting
     152
    148153= 10.2.14 - 13/12/23 =
    149154
  • transferito/trunk/src/Controllers/Transfer.php

    r3026523 r3065060  
    281281
    282282        /**
    283          * Windows HOT Fix
    284          * @todo return to the original check when FULL FIX has been implemented
    285          */
    286         $isWindows = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN';
    287         $execEnabled = $isWindows ? false : function_exists('exec') && @exec('echo EXEC') == 'EXEC';
     283         * Default the exec enabled flag to false
     284         */
     285        $execEnabled = false;
     286
     287        /**
     288         * Get the ByPass exec usage Flag from the settings
     289         */
     290        $settingsOption = get_option('transferito_settings_option');
     291        $bypassExecUsage = isset($settingsOption['transferito_bypass_exec_archive_creation'])
     292            ? $settingsOption['transferito_bypass_exec_archive_creation']
     293            : false;
     294
     295        /**
     296         * If the flag is not set
     297         * Check to see if the OS is windows
     298         * If it is not - Check to see if exec can be used
     299         */
     300        if (!$bypassExecUsage) {
     301            /**
     302             * Windows HOT Fix
     303             * @todo return to the original check when FULL FIX has been implemented
     304             */
     305            $isWindows = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN';
     306            $execEnabled = $isWindows
     307                ? false
     308                : function_exists('exec') && @exec('echo EXEC') == 'EXEC';
     309        }
     310
     311
    288312        $metRequirements = !$zipEnabled && !$execEnabled ? false : true;
    289313        $useZip = !$execEnabled;
     
    21762200            'FAILED_STARTING_MIGRATION' => 'There has been an issue starting your migration',
    21772201            'ERROR_GETTING_STATUS'      => 'There has been an issue getting the status of your migration.',
    2178             'FAILED_LOCAL_UPLOAD'       => 'There has been an issue uploading your backup to our servers',
     2202            'UPLOAD_START_FAILURE'      => 'We have been unable to start uploading your backup to our servers',
     2203            'UPLOAD_CHUNK_FAILURE'      => 'An error has occurred whilst uploading your backup to our servers',
     2204            'UPLOAD_COMPLETION_FAILURE' => 'We are unable to complete the upload of your backup to our servers',
    21792205            'USE_CUSTOM_ERROR_MESSAGE'  => $errors && isset($errors['data']) ? $errors['data'] : 'There has been an issue processing your migration',
    21802206        ];
  • transferito/trunk/src/Models/Settings/Setup.php

    r3013704 r3065060  
    188188        );
    189189
     190        add_settings_field(
     191            'transferito_bypass_exec_archive_creation', // ID
     192            'Bypass CMD Backup Creation', // Title
     193            array( $this, 'bypassExecArchiveCreation' ), // Callback
     194            'transferito-settings', // Page
     195            'transferito_settings_section'
     196        );
    190197    }
    191198
     
    269276        $new_input['transferito_force_tar_backup'] = isset($input['transferito_force_tar_backup']);
    270277        $new_input['transferito_use_default_collation'] = isset($input['transferito_use_default_collation']);
     278        $new_input['transferito_bypass_exec_archive_creation'] = isset($input['transferito_bypass_exec_archive_creation']);
    271279
    272280        set_transient( 'transferito_settings_update_counter', 1 );
     
    342350    }
    343351
     352    public function bypassExecArchiveCreation()
     353    {
     354        $checked = isset($this->options['transferito_bypass_exec_archive_creation']) && $this->options['transferito_bypass_exec_archive_creation'] ? 'checked' : '';
     355        echo '<input type="checkbox" id="transferito_bypass_exec_archive_creation" name="transferito_settings_option[transferito_bypass_exec_archive_creation]"' . $checked . '/>';
     356    }
     357
    344358    public function settingsHTML()
    345359    {
  • transferito/trunk/src/Views/Assets/js/transferito.js

    r3026523 r3065060  
    14751475                    });
    14761476                    self.cleanUp(
    1477                         'FAILED_LOCAL_UPLOAD',
     1477                        'UPLOAD_START_FAILURE',
    14781478                        error.responseJSON,
    14791479                        false,
     
    15561556                    });
    15571557                    self.cleanUp(
    1558                         'FAILED_LOCAL_UPLOAD',
     1558                        'UPLOAD_CHUNK_FAILURE',
    15591559                        error.responseJSON,
    15601560                        false,
     
    16191619                    });
    16201620                    self.cleanUp(
    1621                         'FAILED_LOCAL_UPLOAD',
     1621                        'UPLOAD_COMPLETION_FAILURE',
    16221622                        error.responseJSON,
    16231623                        false,
  • transferito/trunk/transferito.php

    r3026523 r3065060  
    44 * Plugin URI:   https://transferito.com/
    55 * Description:  Quickly transfer a WordPress site and database to another server.
    6  * Version:      10.3.10
     6 * Version:      10.4.1
    77 * Author:       Transferito
    88 * Author URI:   https://transferito.com/
     
    2727define( 'TRANSFERITO_ASSET_URL',       plugin_dir_url( __FILE__ ) . 'src/Views/Assets/' );
    2828define( 'TRANSFERITO_CHUNK_SIZE',      (5 * 1024 * 1024) );
    29 define( 'TRANSFERITO_VERSION',         '10.3.10' );
     29define( 'TRANSFERITO_VERSION',         '10.4.1' );
    3030define( 'TRANSFERITO_MAX_ALLOWED',     (250 * 1024 * 1024) );
    3131define( 'TRANSFERITO_ZIP_LIMIT',       (32 * 1024 * 1024) );
Note: See TracChangeset for help on using the changeset viewer.