Plugin Directory

Changeset 2206009


Ignore:
Timestamp:
12/04/2019 04:47:04 PM (6 years ago)
Author:
wpsynchro
Message:

Update to version 1.5.2

Location:
wpsynchro
Files:
97 added
7 edited

Legend:

Unmodified
Added
Removed
  • wpsynchro/trunk/includes/REST/PopulateFileList.php

    r2189332 r2206009  
    153153        global $wpdb;
    154154
    155         // Run until we have around one second left
    156         while ($this->timer->getRemainingSyncTime() > 5) {
     155        // Run until there is less than 4 seconds remaining
     156        while ($this->timer->getRemainingSyncTime() > 4) {
    157157            $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");
    158158            if ($dir_to_expand == null) {
  • wpsynchro/trunk/includes/utilities/SyncTimerList.php

    r2189332 r2206009  
    1919
    2020    // Constants
    21     CONST MAX_SYNC_TIME_LIMIT = 30;
     21    const MAX_SYNC_TIME_LIMIT = 30;
    2222
    23     function __construct()
     23    public function __construct()
    2424    {
    25        
    2625    }
    2726
     
    4443
    4544        // 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        }
    4750        $this->sync_max_execution_time = $this->getAdjustedTimeLimit($this->php_max_execution_time);
    4851    }
     
    5457    public function getAdjustedTimeLimit($timelimit)
    5558    {
     59        if ($timelimit < 0) {
     60            return 0;
     61        }
    5662
    57         if ($timelimit < 1 || $timelimit > self::MAX_SYNC_TIME_LIMIT) {
     63        if ($timelimit > self::MAX_SYNC_TIME_LIMIT) {
    5864            $timelimit = self::MAX_SYNC_TIME_LIMIT;   // We set it to max X seconds
    5965        }
    60         $timelimit = $timelimit * 0.9; // Take 20% off to make sure we dont hit the limit   
     66        $timelimit = $timelimit * 0.9; // Take 10% off to make sure we dont hit the limit
    6167        return $timelimit;
    6268    }
  • wpsynchro/trunk/readme.txt

    r2198397 r2206009  
    55Requires at least: 4.7
    66Tested up to: 5.3
    7 Stable tag: 1.5.1
     7Stable tag: 1.5.2
    88Requires PHP: 5.6
    99License: GPLv3
     
    107107== Changelog ==
    108108
     109= 1.5.2 =
     110 * Bugfix: File population can in certain cases generate REST errors
     111
    109112= 1.5.1 =
    110113 * Bugfix: Make multisite error a warning instead, to prevent blocking users that want to use it anyway
  • wpsynchro/trunk/vendor/autoload.php

    r2198397 r2206009  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitec9e083b8205eaaa8df2e14e0108447f::getLoader();
     7return ComposerAutoloaderInit0443667efefb62f831d90067781ebd1c::getLoader();
  • wpsynchro/trunk/vendor/composer/autoload_real.php

    r2198397 r2206009  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitec9e083b8205eaaa8df2e14e0108447f
     5class ComposerAutoloaderInit0443667efefb62f831d90067781ebd1c
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInitec9e083b8205eaaa8df2e14e0108447f', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInit0443667efefb62f831d90067781ebd1c', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInitec9e083b8205eaaa8df2e14e0108447f', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInit0443667efefb62f831d90067781ebd1c', 'loadClassLoader'));
    2525
    2626        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    2828            require_once __DIR__ . '/autoload_static.php';
    2929
    30             call_user_func(\Composer\Autoload\ComposerStaticInitec9e083b8205eaaa8df2e14e0108447f::getInitializer($loader));
     30            call_user_func(\Composer\Autoload\ComposerStaticInit0443667efefb62f831d90067781ebd1c::getInitializer($loader));
    3131        } else {
    3232            $map = require __DIR__ . '/autoload_namespaces.php';
  • wpsynchro/trunk/vendor/composer/autoload_static.php

    r2198397 r2206009  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitec9e083b8205eaaa8df2e14e0108447f
     7class ComposerStaticInit0443667efefb62f831d90067781ebd1c
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    9696    {
    9797        return \Closure::bind(function () use ($loader) {
    98             $loader->prefixLengthsPsr4 = ComposerStaticInitec9e083b8205eaaa8df2e14e0108447f::$prefixLengthsPsr4;
    99             $loader->prefixDirsPsr4 = ComposerStaticInitec9e083b8205eaaa8df2e14e0108447f::$prefixDirsPsr4;
    100             $loader->classMap = ComposerStaticInitec9e083b8205eaaa8df2e14e0108447f::$classMap;
     98            $loader->prefixLengthsPsr4 = ComposerStaticInit0443667efefb62f831d90067781ebd1c::$prefixLengthsPsr4;
     99            $loader->prefixDirsPsr4 = ComposerStaticInit0443667efefb62f831d90067781ebd1c::$prefixDirsPsr4;
     100            $loader->classMap = ComposerStaticInit0443667efefb62f831d90067781ebd1c::$classMap;
    101101
    102102        }, null, ClassLoader::class);
  • wpsynchro/trunk/wpsynchro.php

    r2198397 r2206009  
    44  Plugin URI: https://wpsynchro.com/home
    55  Description: Complete migration plugin for WordPress - Synchronization of database and files made easy.
    6   Version: 1.5.1
     6  Version: 1.5.2
    77  Author: WPSynchro
    88  Author URI: https://wpsynchro.com
     
    3434} // Exit if accessed directly
    3535
    36 define('WPSYNCHRO_VERSION', '1.5.1');
     36define('WPSYNCHRO_VERSION', '1.5.2');
    3737define('WPSYNCHRO_DB_VERSION', '4');
    3838define('WPSYNCHRO_NEWEST_MU_COMPATIBILITY_VERSION', '1.0.3');
Note: See TracChangeset for help on using the changeset viewer.