Changeset 2206009
- Timestamp:
- 12/04/2019 04:47:04 PM (6 years ago)
- Location:
- wpsynchro
- Files:
-
- 97 added
- 7 edited
-
tags/1.5.2 (added)
-
tags/1.5.2/LICENSE.txt (added)
-
tags/1.5.2/changelog.txt (added)
-
tags/1.5.2/dist (added)
-
tags/1.5.2/dist/icon-c7cc79fed6d48089cd54a58cf35247ea.png (added)
-
tags/1.5.2/dist/manifest.json (added)
-
tags/1.5.2/dist/wpsynchro-8283d0c6b67d5d72fc73.css (added)
-
tags/1.5.2/dist/wpsynchro-8283d0c6b67d5d72fc73.js (added)
-
tags/1.5.2/includes (added)
-
tags/1.5.2/includes/CommonFunctions.php (added)
-
tags/1.5.2/includes/Database (added)
-
tags/1.5.2/includes/Database/DatabaseFinalize.php (added)
-
tags/1.5.2/includes/Database/DatabaseSync.php (added)
-
tags/1.5.2/includes/Finalize (added)
-
tags/1.5.2/includes/Finalize/FinalizeSync.php (added)
-
tags/1.5.2/includes/Initiate (added)
-
tags/1.5.2/includes/Initiate/InitiateSync.php (added)
-
tags/1.5.2/includes/Installation.php (added)
-
tags/1.5.2/includes/InstallationFactory.php (added)
-
tags/1.5.2/includes/Job.php (added)
-
tags/1.5.2/includes/Logger (added)
-
tags/1.5.2/includes/Logger/FileLogger.php (added)
-
tags/1.5.2/includes/Logger/SyncMetadataLog.php (added)
-
tags/1.5.2/includes/Masterdata (added)
-
tags/1.5.2/includes/Masterdata/MasterdataSync.php (added)
-
tags/1.5.2/includes/Pages (added)
-
tags/1.5.2/includes/Pages/AdminAddEdit.php (added)
-
tags/1.5.2/includes/Pages/AdminLog.php (added)
-
tags/1.5.2/includes/Pages/AdminLogTable.php (added)
-
tags/1.5.2/includes/Pages/AdminOverview.php (added)
-
tags/1.5.2/includes/Pages/AdminOverviewTable.php (added)
-
tags/1.5.2/includes/Pages/AdminRunSync.php (added)
-
tags/1.5.2/includes/Pages/AdminSetup.php (added)
-
tags/1.5.2/includes/Pages/AdminSupport.php (added)
-
tags/1.5.2/includes/REST (added)
-
tags/1.5.2/includes/REST/ClientSyncDatabase.php (added)
-
tags/1.5.2/includes/REST/DatabaseBackup.php (added)
-
tags/1.5.2/includes/REST/DownloadLog.php (added)
-
tags/1.5.2/includes/REST/FileTransfer.php (added)
-
tags/1.5.2/includes/REST/Filesystem.php (added)
-
tags/1.5.2/includes/REST/Finalize.php (added)
-
tags/1.5.2/includes/REST/GetFiles.php (added)
-
tags/1.5.2/includes/REST/HealthCheck.php (added)
-
tags/1.5.2/includes/REST/Initiate.php (added)
-
tags/1.5.2/includes/REST/MasterData.php (added)
-
tags/1.5.2/includes/REST/PopulateFileList.php (added)
-
tags/1.5.2/includes/REST/RESTServices.php (added)
-
tags/1.5.2/includes/REST/Status.php (added)
-
tags/1.5.2/includes/REST/Synchronize.php (added)
-
tags/1.5.2/includes/REST/TimeoutCheck.php (added)
-
tags/1.5.2/includes/ServiceController.php (added)
-
tags/1.5.2/includes/Status (added)
-
tags/1.5.2/includes/Status/SynchronizeStatus.php (added)
-
tags/1.5.2/includes/SynchronizeController.php (added)
-
tags/1.5.2/includes/Templates (added)
-
tags/1.5.2/includes/Templates/card-facebook.php (added)
-
tags/1.5.2/includes/Templates/card-mailinglist.php (added)
-
tags/1.5.2/includes/Templates/card-pro-version.php (added)
-
tags/1.5.2/includes/Transport (added)
-
tags/1.5.2/includes/Transport/RemoteConnection.php (added)
-
tags/1.5.2/includes/Transport/RemoteTestTransport.php (added)
-
tags/1.5.2/includes/Transport/RemoteTransport.php (added)
-
tags/1.5.2/includes/Transport/RemoteTransportResult.php (added)
-
tags/1.5.2/includes/Transport/ReturnResult.php (added)
-
tags/1.5.2/includes/Transport/Transfer.php (added)
-
tags/1.5.2/includes/Transport/TransferFile.php (added)
-
tags/1.5.2/includes/Utilities (added)
-
tags/1.5.2/includes/Utilities/AdminActivation.php (added)
-
tags/1.5.2/includes/Utilities/AdminDeactivation.php (added)
-
tags/1.5.2/includes/Utilities/Compatibility (added)
-
tags/1.5.2/includes/Utilities/Compatibility/Compatibility.php (added)
-
tags/1.5.2/includes/Utilities/Compatibility/MUPluginHandler.php (added)
-
tags/1.5.2/includes/Utilities/Compatibility/wpsynchro-mu-plugin-compat.php (added)
-
tags/1.5.2/includes/Utilities/Compatibility/wpsynchro_compat_theme (added)
-
tags/1.5.2/includes/Utilities/Compatibility/wpsynchro_compat_theme/functions.php (added)
-
tags/1.5.2/includes/Utilities/DatabaseTables.php (added)
-
tags/1.5.2/includes/Utilities/DebugInformation.php (added)
-
tags/1.5.2/includes/Utilities/SyncTimer.php (added)
-
tags/1.5.2/includes/Utilities/SyncTimerList.php (added)
-
tags/1.5.2/includes/WPSynchroBootstrap.php (added)
-
tags/1.5.2/includes/compatibility (added)
-
tags/1.5.2/includes/compatibility/class-compatibility.php (added)
-
tags/1.5.2/languages (added)
-
tags/1.5.2/languages/wpsynchro.pot (added)
-
tags/1.5.2/readme.txt (added)
-
tags/1.5.2/vendor (added)
-
tags/1.5.2/vendor/autoload.php (added)
-
tags/1.5.2/vendor/composer (added)
-
tags/1.5.2/vendor/composer/ClassLoader.php (added)
-
tags/1.5.2/vendor/composer/LICENSE (added)
-
tags/1.5.2/vendor/composer/autoload_classmap.php (added)
-
tags/1.5.2/vendor/composer/autoload_namespaces.php (added)
-
tags/1.5.2/vendor/composer/autoload_psr4.php (added)
-
tags/1.5.2/vendor/composer/autoload_real.php (added)
-
tags/1.5.2/vendor/composer/autoload_static.php (added)
-
tags/1.5.2/vendor/composer/installed.json (added)
-
tags/1.5.2/wpsynchro.php (added)
-
trunk/includes/REST/PopulateFileList.php (modified) (1 diff)
-
trunk/includes/utilities/SyncTimerList.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/wpsynchro.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpsynchro/trunk/includes/REST/PopulateFileList.php
r2189332 r2206009 153 153 global $wpdb; 154 154 155 // Run until we have around one second left156 while ($this->timer->getRemainingSyncTime() > 5) {155 // Run until there is less than 4 seconds remaining 156 while ($this->timer->getRemainingSyncTime() > 4) { 157 157 $dir_to_expand = $wpdb->get_row("select * from " . $wpdb->prefix . "wpsynchro_file_population_list where is_expanded=0 and is_dir=1 order by id limit 1"); 158 158 if ($dir_to_expand == null) { -
wpsynchro/trunk/includes/utilities/SyncTimerList.php
r2189332 r2206009 19 19 20 20 // Constants 21 CONSTMAX_SYNC_TIME_LIMIT = 30;21 const MAX_SYNC_TIME_LIMIT = 30; 22 22 23 function __construct()23 public function __construct() 24 24 { 25 26 25 } 27 26 … … 44 43 45 44 // Get time limit in seconds (float) 46 $this->php_max_execution_time = intval(ini_get('max_execution_time')); 45 if (defined("WPSYNCHRO_TESTING")) { 46 $this->php_max_execution_time = 30; 47 } else { 48 $this->php_max_execution_time = intval(ini_get('max_execution_time')); 49 } 47 50 $this->sync_max_execution_time = $this->getAdjustedTimeLimit($this->php_max_execution_time); 48 51 } … … 54 57 public function getAdjustedTimeLimit($timelimit) 55 58 { 59 if ($timelimit < 0) { 60 return 0; 61 } 56 62 57 if ($timelimit < 1 || $timelimit> self::MAX_SYNC_TIME_LIMIT) {63 if ($timelimit > self::MAX_SYNC_TIME_LIMIT) { 58 64 $timelimit = self::MAX_SYNC_TIME_LIMIT; // We set it to max X seconds 59 65 } 60 $timelimit = $timelimit * 0.9; // Take 20% off to make sure we dont hit the limit66 $timelimit = $timelimit * 0.9; // Take 10% off to make sure we dont hit the limit 61 67 return $timelimit; 62 68 } -
wpsynchro/trunk/readme.txt
r2198397 r2206009 5 5 Requires at least: 4.7 6 6 Tested up to: 5.3 7 Stable tag: 1.5. 17 Stable tag: 1.5.2 8 8 Requires PHP: 5.6 9 9 License: GPLv3 … … 107 107 == Changelog == 108 108 109 = 1.5.2 = 110 * Bugfix: File population can in certain cases generate REST errors 111 109 112 = 1.5.1 = 110 113 * Bugfix: Make multisite error a warning instead, to prevent blocking users that want to use it anyway -
wpsynchro/trunk/vendor/autoload.php
r2198397 r2206009 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit ec9e083b8205eaaa8df2e14e0108447f::getLoader();7 return ComposerAutoloaderInit0443667efefb62f831d90067781ebd1c::getLoader(); -
wpsynchro/trunk/vendor/composer/autoload_real.php
r2198397 r2206009 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit ec9e083b8205eaaa8df2e14e0108447f5 class ComposerAutoloaderInit0443667efefb62f831d90067781ebd1c 6 6 { 7 7 private static $loader; … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit ec9e083b8205eaaa8df2e14e0108447f', 'loadClassLoader'), true, true);22 spl_autoload_register(array('ComposerAutoloaderInit0443667efefb62f831d90067781ebd1c', 'loadClassLoader'), true, true); 23 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit ec9e083b8205eaaa8df2e14e0108447f', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInit0443667efefb62f831d90067781ebd1c', 'loadClassLoader')); 25 25 26 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 28 28 require_once __DIR__ . '/autoload_static.php'; 29 29 30 call_user_func(\Composer\Autoload\ComposerStaticInit ec9e083b8205eaaa8df2e14e0108447f::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit0443667efefb62f831d90067781ebd1c::getInitializer($loader)); 31 31 } else { 32 32 $map = require __DIR__ . '/autoload_namespaces.php'; -
wpsynchro/trunk/vendor/composer/autoload_static.php
r2198397 r2206009 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit ec9e083b8205eaaa8df2e14e0108447f7 class ComposerStaticInit0443667efefb62f831d90067781ebd1c 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 96 96 { 97 97 return \Closure::bind(function () use ($loader) { 98 $loader->prefixLengthsPsr4 = ComposerStaticInit ec9e083b8205eaaa8df2e14e0108447f::$prefixLengthsPsr4;99 $loader->prefixDirsPsr4 = ComposerStaticInit ec9e083b8205eaaa8df2e14e0108447f::$prefixDirsPsr4;100 $loader->classMap = ComposerStaticInit ec9e083b8205eaaa8df2e14e0108447f::$classMap;98 $loader->prefixLengthsPsr4 = ComposerStaticInit0443667efefb62f831d90067781ebd1c::$prefixLengthsPsr4; 99 $loader->prefixDirsPsr4 = ComposerStaticInit0443667efefb62f831d90067781ebd1c::$prefixDirsPsr4; 100 $loader->classMap = ComposerStaticInit0443667efefb62f831d90067781ebd1c::$classMap; 101 101 102 102 }, null, ClassLoader::class); -
wpsynchro/trunk/wpsynchro.php
r2198397 r2206009 4 4 Plugin URI: https://wpsynchro.com/home 5 5 Description: Complete migration plugin for WordPress - Synchronization of database and files made easy. 6 Version: 1.5. 16 Version: 1.5.2 7 7 Author: WPSynchro 8 8 Author URI: https://wpsynchro.com … … 34 34 } // Exit if accessed directly 35 35 36 define('WPSYNCHRO_VERSION', '1.5. 1');36 define('WPSYNCHRO_VERSION', '1.5.2'); 37 37 define('WPSYNCHRO_DB_VERSION', '4'); 38 38 define('WPSYNCHRO_NEWEST_MU_COMPATIBILITY_VERSION', '1.0.3');
Note: See TracChangeset
for help on using the changeset viewer.