Changeset 2519732
- Timestamp:
- 04/22/2021 11:44:02 AM (5 years ago)
- Location:
- local-sync/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (2 diffs)
-
admin/class-local-sync-admin.php (modified) (4 diffs)
-
admin/views/local-sync-settings-display.php (modified) (1 diff)
-
includes/class-local-sync-handle-server-requests.php (modified) (2 diffs)
-
local-sync-bridge/class-local-sync-file-system.php (modified) (1 diff)
-
local-sync-constants.php (modified) (2 diffs)
-
local-sync.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
local-sync/trunk/README.txt
r2513288 r2519732 5 5 Requires at least: 3.0.1 6 6 Tested up to: 5.7 7 Stable tag: 1.0. 47 Stable tag: 1.0.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 == Changelog == 51 51 52 = 1.0.5 = 53 *Release Date - 22 Apr 2021* 54 55 * Fix : Not able to install LocalSync plugin on WPTimeCapsule's staging site. 56 * Fix : Not able to include, exclude Files/Folders on WPTimeCapsule plugin settings page when LocalSync plugin is active. 57 58 * Improvement : LOCAL_SYNC_DOWNLOAD_CHUNK_SIZE constant is introduced. 59 * Improvement : LOCAL_SYNC_UPLOAD_CHUNK_SIZE constant is introduced. 60 52 61 = 1.0.4 = 53 62 *Release Date - 12 Apr 2021* -
local-sync/trunk/admin/class-local-sync-admin.php
r2248180 r2519732 93 93 // return true; 94 94 // } 95 $is_table_exist = $this->wpdb->query('SHOW TABLES LIKE " %'.$this->wpdb->base_prefix.'local_sync_options%"');95 $is_table_exist = $this->wpdb->query('SHOW TABLES LIKE "'.$this->wpdb->base_prefix.'local_sync_options%"'); 96 96 97 97 if(!$is_table_exist){ … … 131 131 public function update_1_0_1_handle() { 132 132 133 $is_table_exist = $this->wpdb->query('SHOW TABLES LIKE " %'.$this->wpdb->base_prefix.'local_sync_options%"');133 $is_table_exist = $this->wpdb->query('SHOW TABLES LIKE "'.$this->wpdb->base_prefix.'local_sync_options%"'); 134 134 135 135 if(!$is_table_exist){ … … 159 159 public function update_1_0_2_handle() { 160 160 161 $is_table_exist = $this->wpdb->query('SHOW TABLES LIKE " %'.$this->wpdb->base_prefix.'local_sync_options%"');161 $is_table_exist = $this->wpdb->query('SHOW TABLES LIKE "'.$this->wpdb->base_prefix.'local_sync_options%"'); 162 162 163 163 if(!$is_table_exist){ … … 333 333 334 334 wp_enqueue_script( 'ls-clipboard', plugin_dir_url( __FILE__ ) . '/js/ls-clipboard.min.js', array(), LOCAL_SYNC_VERSION ); 335 336 wp_enqueue_script('local-sync-fancy-tree-ui-js', plugins_url() . '/' . LOCAL_SYNC_PLUGIN_NAME . '/treeView/fancy-tree-ui.min.js', array(), LOCAL_SYNC_VERSION);337 wp_enqueue_script('local-sync-fancytree-js', plugins_url() . '/' . LOCAL_SYNC_PLUGIN_NAME . '/treeView/jquery.fancytree.js', array(), LOCAL_SYNC_VERSION);338 wp_enqueue_style('local-sync-fancytree-css', plugins_url() . '/' . LOCAL_SYNC_PLUGIN_NAME . '/treeView/skin/ui.fancytree.css', array(), LOCAL_SYNC_VERSION);339 wp_enqueue_script('local-sync-fileTree-common-js', plugins_url() . '/' . LOCAL_SYNC_PLUGIN_NAME . '/treeView/common.js', array(), LOCAL_SYNC_VERSION);340 341 335 } 342 336 -
local-sync/trunk/admin/views/local-sync-settings-display.php
r2245466 r2519732 18 18 19 19 return; 20 } 20 } 21 22 wp_enqueue_script('local-sync-fancy-tree-ui-js', plugins_url() . '/' . LOCAL_SYNC_PLUGIN_NAME . '/treeView/fancy-tree-ui.min.js', array(), LOCAL_SYNC_VERSION); 23 wp_enqueue_script('local-sync-fancytree-js', plugins_url() . '/' . LOCAL_SYNC_PLUGIN_NAME . '/treeView/jquery.fancytree.js', array(), LOCAL_SYNC_VERSION); 24 wp_enqueue_style('local-sync-fancytree-css', plugins_url() . '/' . LOCAL_SYNC_PLUGIN_NAME . '/treeView/skin/ui.fancytree.css', array(), LOCAL_SYNC_VERSION); 25 wp_enqueue_script('local-sync-fileTree-common-js', plugins_url() . '/' . LOCAL_SYNC_PLUGIN_NAME . '/treeView/common.js', array(), LOCAL_SYNC_VERSION); 21 26 22 27 $local_sync_ajax_nonce = wp_create_nonce( "ls_revmakx" ); -
local-sync/trunk/includes/class-local-sync-handle-server-requests.php
r2245393 r2519732 406 406 407 407 public function get_file_data() { 408 $UPLOAD_CHUNK_SIZE = 1024 * 1024;408 $UPLOAD_CHUNK_SIZE = LOCAL_SYNC_UPLOAD_CHUNK_SIZE; 409 409 410 410 $file_name = ABSPATH . $this->request_data['file_name']; … … 423 423 $file_data = @fread($fp, $UPLOAD_CHUNK_SIZE); 424 424 425 if(empty($file_data)){ 426 local_sync_log('', "--------empty file data for get_file_data------"); 427 } 428 425 429 $file_data_enc = bin2hex($file_data); 430 431 if(empty($file_data_enc)){ 432 local_sync_log('', "--------empty file bin data for get_file_data------"); 433 } 426 434 427 435 local_sync_die_with_json_encode_simple(array( -
local-sync/trunk/local-sync-bridge/class-local-sync-file-system.php
r2513252 r2519732 7 7 { 8 8 public $last_error; 9 public $DOWNLOAD_CHUNK_SIZE = 1024 * 1024;10 public $UPLOAD_CHUNK_SIZE = 1024 * 1024;9 public $DOWNLOAD_CHUNK_SIZE = LOCAL_SYNC_DOWNLOAD_CHUNK_SIZE; 10 public $UPLOAD_CHUNK_SIZE = LOCAL_SYNC_UPLOAD_CHUNK_SIZE; 11 11 12 12 public function __construct() { -
local-sync/trunk/local-sync-constants.php
r2513252 r2519732 75 75 76 76 public function versions(){ 77 $this->define( 'LOCAL_SYNC_VERSION', '1.0. 4' );77 $this->define( 'LOCAL_SYNC_VERSION', '1.0.5' ); 78 78 $this->define( 'LOCAL_SYNC_DATABASE_VERSION', '1.0' ); 79 79 } … … 103 103 $this->define( 'LOCAL_SYNC_MAX_REQUEST_PROGRESS_WAIT_TIME', 180); // 3 mins (3 * 60) 104 104 $this->define( 'LOCAL_SYNC_CRYPT_BUFFER_SIZE', 2097152); 105 106 $this->define( 'LOCAL_SYNC_DOWNLOAD_CHUNK_SIZE', 1024 * 1024); 107 $this->define( 'LOCAL_SYNC_UPLOAD_CHUNK_SIZE', 1024 * 1024); 105 108 106 109 //below PHP 5.4 -
local-sync/trunk/local-sync.php
r2513252 r2519732 12 12 * Plugin URI: https://localsync.io 13 13 * Description: Clone live site to the local site and vice versa. 14 * Version: 1.0. 414 * Version: 1.0.5 15 15 * Author: Revmakx 16 16 * Author URI: https://revmakx.com
Note: See TracChangeset
for help on using the changeset viewer.