Changeset 2969699
- Timestamp:
- 09/21/2023 11:41:31 AM (3 years ago)
- Location:
- local-sync/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (2 diffs)
-
admin/class-local-sync-restore-op.php (modified) (2 diffs)
-
local-sync-bridge/wp-files/wp-db-custom.php (modified) (1 diff)
-
local-sync-constants.php (modified) (1 diff)
-
local-sync.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
local-sync/trunk/README.txt
r2961676 r2969699 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.3.1 7 Stable tag: 1.1. 57 Stable tag: 1.1.6 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 = 1.1.6 = 54 *Release Date - 21 Sep 2023* 55 56 * Fix : The migration process failed in a few cases. 57 53 58 = 1.1.5 = 54 59 *Release Date - 01 Sep 2023* -
local-sync/trunk/admin/class-local-sync-restore-op.php
r2961665 r2969699 4 4 * 5 5 */ 6 #[AllowDynamicProperties] 6 7 class Local_Sync_Restore_Op 7 8 { … … 834 835 835 836 if (stripos($haystack, "insert into") !== false) { 837 $sub_str_haystack = substr($haystack, 0, 500); 838 $this->old_table_name = local_sync_get_table_from_query($sub_str_haystack); 836 839 if ($this->tempQueryCount > 0) { 837 840 if ($this->tempQueryCount > 1000 || $this->tempQuerySize > 100000) { 838 $sql = ",".$this->replaceInsertQuery($haystack, $table_prefix). ";\n"; 841 if(empty($this->old_table_name)){ 842 $sql = ''; 843 } else { 844 $sql = ",".$this->replaceInsertQuery($haystack, $table_prefix). ";\n"; 845 } 839 846 $retArray['q'] = $sql; 840 847 $retArray['exec'] = 1; 841 848 $this->resetTempQuery(-1); 842 849 } else { 843 $sql = ",".$this->replaceInsertQuery($haystack, $table_prefix); 850 if(empty($this->old_table_name)){ 851 $sql = ''; 852 } else { 853 $sql = ",".$this->replaceInsertQuery($haystack, $table_prefix); 854 } 844 855 $retArray['q'] = $sql; 845 856 } 846 857 } else { 847 $sql = substr($haystack, 0, -2); 858 if(empty($this->old_table_name)){ 859 $sql = ''; 860 } else { 861 $sql = substr($haystack, 0, -2); 862 } 863 848 864 $retArray['q'] = $sql; 849 865 } -
local-sync/trunk/local-sync-bridge/wp-files/wp-db-custom.php
r2245393 r2969699 811 811 $modes_str = implode(',', $modes); 812 812 813 if ( $this->use_mysqli) {814 mysqli_query( $this->dbh, "SET SESSION sql_mode='NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'");813 if ( $this->use_mysqli ) { 814 mysqli_query( $this->dbh, "SET SESSION sql_mode='$modes_str'" ); 815 815 } else { 816 mysql_query( "SET SESSION sql_mode='NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'", $this->dbh);816 mysql_query( "SET SESSION sql_mode='$modes_str'", $this->dbh ); 817 817 } 818 818 } -
local-sync/trunk/local-sync-constants.php
r2961665 r2969699 76 76 77 77 public function versions(){ 78 $this->define( 'LOCAL_SYNC_VERSION', '1.1. 5' );78 $this->define( 'LOCAL_SYNC_VERSION', '1.1.6' ); 79 79 $this->define( 'LOCAL_SYNC_DATABASE_VERSION', '1.0' ); 80 80 } -
local-sync/trunk/local-sync.php
r2961665 r2969699 12 12 * Plugin URI: https://localsync.io 13 13 * Description: Easily migrate your WordPress Site from one host to another. 14 * Version: 1.1. 514 * Version: 1.1.6 15 15 * Author: Revmakx 16 16 * Author URI: https://revmakx.com
Note: See TracChangeset
for help on using the changeset viewer.