Changeset 3065060
- Timestamp:
- 04/04/2024 09:57:40 PM (2 years ago)
- Location:
- transferito/trunk
- Files:
-
- 5 edited
-
readme.txt (modified) (2 diffs)
-
src/Controllers/Transfer.php (modified) (2 diffs)
-
src/Models/Settings/Setup.php (modified) (3 diffs)
-
src/Views/Assets/js/transferito.js (modified) (3 diffs)
-
transferito.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
transferito/trunk/readme.txt
r3026523 r3065060 3 3 Contributors: transferito 4 4 Tags: wordpress migration, migrate, move, wordpress transfer, clone, migrate wordpress, website migration 5 Stable tag: 10. 3.106 Version: 10. 3.105 Stable tag: 10.4.1 6 Version: 10.4.1 7 7 Requires at least: 4.7 8 8 Requires PHP: 5.6 9 Tested up to: 6. 49 Tested up to: 6.5 10 10 License: GPLv3 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html 12 12 13 The easiest 1-Click WordPress Migration plugin that will migrate, clone, transfer and move your WordPress site to any host in seconds.== Description ==13 The easiest 1-Click WordPress Migration plugin that will migrate, clone, transfer and move your WordPress site to any host in seconds.==== Description == 14 14 Transferito is a 1-Click WordPress Migration plugin that allows you to automatically transfer, migrate or clone a WordPress installation to a new location. 15 15 … … 146 146 == Changelog == 147 147 148 = 10.4.0 - 04/04/24 = 149 150 Added a checkbox on the settings page to bypass creating a backup using the command line 151 Added individual failure flags for better error reporting 152 148 153 = 10.2.14 - 13/12/23 = 149 154 -
transferito/trunk/src/Controllers/Transfer.php
r3026523 r3065060 281 281 282 282 /** 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 288 312 $metRequirements = !$zipEnabled && !$execEnabled ? false : true; 289 313 $useZip = !$execEnabled; … … 2176 2200 'FAILED_STARTING_MIGRATION' => 'There has been an issue starting your migration', 2177 2201 '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', 2179 2205 'USE_CUSTOM_ERROR_MESSAGE' => $errors && isset($errors['data']) ? $errors['data'] : 'There has been an issue processing your migration', 2180 2206 ]; -
transferito/trunk/src/Models/Settings/Setup.php
r3013704 r3065060 188 188 ); 189 189 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 ); 190 197 } 191 198 … … 269 276 $new_input['transferito_force_tar_backup'] = isset($input['transferito_force_tar_backup']); 270 277 $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']); 271 279 272 280 set_transient( 'transferito_settings_update_counter', 1 ); … … 342 350 } 343 351 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 344 358 public function settingsHTML() 345 359 { -
transferito/trunk/src/Views/Assets/js/transferito.js
r3026523 r3065060 1475 1475 }); 1476 1476 self.cleanUp( 1477 ' FAILED_LOCAL_UPLOAD',1477 'UPLOAD_START_FAILURE', 1478 1478 error.responseJSON, 1479 1479 false, … … 1556 1556 }); 1557 1557 self.cleanUp( 1558 ' FAILED_LOCAL_UPLOAD',1558 'UPLOAD_CHUNK_FAILURE', 1559 1559 error.responseJSON, 1560 1560 false, … … 1619 1619 }); 1620 1620 self.cleanUp( 1621 ' FAILED_LOCAL_UPLOAD',1621 'UPLOAD_COMPLETION_FAILURE', 1622 1622 error.responseJSON, 1623 1623 false, -
transferito/trunk/transferito.php
r3026523 r3065060 4 4 * Plugin URI: https://transferito.com/ 5 5 * Description: Quickly transfer a WordPress site and database to another server. 6 * Version: 10. 3.106 * Version: 10.4.1 7 7 * Author: Transferito 8 8 * Author URI: https://transferito.com/ … … 27 27 define( 'TRANSFERITO_ASSET_URL', plugin_dir_url( __FILE__ ) . 'src/Views/Assets/' ); 28 28 define( 'TRANSFERITO_CHUNK_SIZE', (5 * 1024 * 1024) ); 29 define( 'TRANSFERITO_VERSION', '10. 3.10' );29 define( 'TRANSFERITO_VERSION', '10.4.1' ); 30 30 define( 'TRANSFERITO_MAX_ALLOWED', (250 * 1024 * 1024) ); 31 31 define( 'TRANSFERITO_ZIP_LIMIT', (32 * 1024 * 1024) );
Note: See TracChangeset
for help on using the changeset viewer.