Changeset 2760230
- Timestamp:
- 07/22/2022 11:27:53 AM (4 years ago)
- Location:
- local-sync/trunk
- Files:
-
- 8 edited
-
README.txt (modified) (2 diffs)
-
admin/class-local-sync-batch-download.php (modified) (2 diffs)
-
admin/class-local-sync-batch-upload.php (modified) (1 diff)
-
admin/class-local-sync-db-op.php (modified) (3 diffs)
-
admin/class-local-sync-file-iterator.php (modified) (1 diff)
-
admin/class-local-sync-files-op.php (modified) (4 diffs)
-
local-sync-constants.php (modified) (1 diff)
-
local-sync.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
local-sync/trunk/README.txt
r2749602 r2760230 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.0 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 51 51 52 52 == Changelog == 53 54 = 1.1.1 = 55 *Release Date - 22 Jul 2022* 56 57 * Fix : Pushing and pulling failed in a few sites having MariaDB Database. 58 53 59 = 1.1.0 = 54 60 *Release Date - 29 Jun 2022* -
local-sync/trunk/admin/class-local-sync-batch-download.php
r2749602 r2760230 225 225 226 226 local_sync_log(count($files_to_zip), "--------files_to_download--------"); 227 // local_sync_log($files_to_zip, "--------files_to_download--------"); 227 228 228 229 $can_continue = true; … … 327 328 break; 328 329 } 330 $can_continue = false; 329 331 } 330 332 -
local-sync/trunk/admin/class-local-sync-batch-upload.php
r2749602 r2760230 241 241 } 242 242 243 $can_continue = false; 243 244 } while ($can_continue); 244 245 -
local-sync/trunk/admin/class-local-sync-db-op.php
r2749602 r2760230 551 551 552 552 public function complete_all_tables(){ 553 $update_all_tables = "UPDATE " . $this->db->base_prefix . "local_sync_processed_iterator SET offset= '-1' WHERE `name` NOT LIKE '%/%'";553 $update_all_tables = "UPDATE " . $this->db->base_prefix . "local_sync_processed_iterator SET `offset` = '-1' WHERE `name` NOT LIKE '%/%'"; 554 554 555 555 local_sync_log($update_all_tables, '---------------$update_all_tables-----------------'); … … 665 665 private function save_colllected_tables(){ 666 666 667 $sql = "INSERT IGNORE INTO " . $this->db->base_prefix . "local_sync_processed_iterator (id, name, offset) values " . $this->bulk_table_insert;667 $sql = "INSERT IGNORE INTO " . $this->db->base_prefix . "local_sync_processed_iterator (id, `name`, `offset`) values " . $this->bulk_table_insert; 668 668 669 669 $result = $this->db->query($sql); … … 678 678 $table_name = $this->wpdb->base_prefix . 'local_sync_current_process'; 679 679 $insert_str = "(NULL, '$table_name', 0)"; 680 $sql = "insert into `" . $this->db->base_prefix . "local_sync_processed_iterator` (id, name, offset) values $insert_str";680 $sql = "insert into `" . $this->db->base_prefix . "local_sync_processed_iterator` (id, `name`, `offset`) values $insert_str"; 681 681 682 682 // local_sync_log($sql,'-----------$sql save_colllected_table_local_file_list----------------'); -
local-sync/trunk/admin/class-local-sync-file-iterator.php
r2245393 r2760230 174 174 175 175 private function insert_into_iterator_process($qry){ 176 $sql = "insert into " . $this->wpdb->base_prefix . "local_sync_processed_iterator ( name, offset) values $qry";176 $sql = "insert into " . $this->wpdb->base_prefix . "local_sync_processed_iterator ( `name`, `offset` ) values $qry"; 177 177 178 178 $result = $this->wpdb->query($sql); -
local-sync/trunk/admin/class-local-sync-files-op.php
r2749602 r2760230 112 112 113 113 public function get_unfnished_folder() { 114 $sql = "SELECT * FROM {$this->wpdb->base_prefix}local_sync_processed_iterator WHERE offset!= -1 ORDER BY id LIMIT 1";114 $sql = "SELECT * FROM {$this->wpdb->base_prefix}local_sync_processed_iterator WHERE `offset` != -1 ORDER BY id LIMIT 1"; 115 115 $response = $this->wpdb->get_results($sql); 116 116 … … 123 123 $table_name = "{$this->wpdb->base_prefix}local_sync_processed_iterator"; 124 124 125 $sql = "INSERT INTO `$table_name` ( name,offset) VALUES (%s,%s) ON DUPLICATE KEY UPDATE offset= %s";125 $sql = "INSERT INTO `$table_name` (`name`, `offset` ) VALUES (%s,%s) ON DUPLICATE KEY UPDATE `offset` = %s"; 126 126 $sql = $this->wpdb->prepare($sql,$table,$offset,$offset); 127 127 … … 501 501 502 502 public function get_limited_files_to_zip($limit = 50) { 503 $sql = "SELECT file_path FROM `{$this->wpdb->base_prefix}local_sync_current_process` WHERE STATUS='Q' LIMIT $limit";503 $sql = "SELECT file_path FROM `{$this->wpdb->base_prefix}local_sync_current_process` WHERE status='Q' LIMIT $limit"; 504 504 $response = $this->wpdb->get_results($sql); 505 505 … … 512 512 513 513 public function get_limited_files_to_zip_array($limit = 10) { 514 $sql = "SELECT file_path FROM `{$this->wpdb->base_prefix}local_sync_current_process` WHERE STATUS='Q' LIMIT $limit";514 $sql = "SELECT file_path FROM `{$this->wpdb->base_prefix}local_sync_current_process` WHERE status='Q' LIMIT $limit"; 515 515 $response = $this->wpdb->get_results($sql, ARRAY_A); 516 516 -
local-sync/trunk/local-sync-constants.php
r2749602 r2760230 75 75 76 76 public function versions(){ 77 $this->define( 'LOCAL_SYNC_VERSION', '1.1. 0' );77 $this->define( 'LOCAL_SYNC_VERSION', '1.1.1' ); 78 78 $this->define( 'LOCAL_SYNC_DATABASE_VERSION', '1.0' ); 79 79 } -
local-sync/trunk/local-sync.php
r2749602 r2760230 12 12 * Plugin URI: https://localsync.io 13 13 * Description: Easily migrate your WordPress Site from one host to another. 14 * Version: 1.1. 014 * Version: 1.1.1 15 15 * Author: Revmakx 16 16 * Author URI: https://revmakx.com
Note: See TracChangeset
for help on using the changeset viewer.