Plugin Directory

Changeset 2969699


Ignore:
Timestamp:
09/21/2023 11:41:31 AM (3 years ago)
Author:
localsync
Message:

release 1.1.6

Location:
local-sync/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • local-sync/trunk/README.txt

    r2961676 r2969699  
    55Requires at least: 3.0.1
    66Tested up to: 6.3.1
    7 Stable tag: 1.1.5
     7Stable tag: 1.1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151
    5252== Changelog ==
     53= 1.1.6 =
     54*Release Date - 21 Sep 2023*
     55
     56* Fix : The migration process failed in a few cases.
     57
    5358= 1.1.5 =
    5459*Release Date - 01 Sep 2023*
  • local-sync/trunk/admin/class-local-sync-restore-op.php

    r2961665 r2969699  
    44 *
    55 */
     6#[AllowDynamicProperties]
    67class Local_Sync_Restore_Op
    78{
     
    834835
    835836        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);
    836839            if ($this->tempQueryCount > 0) {
    837840                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                    }
    839846                    $retArray['q'] = $sql;
    840847                    $retArray['exec'] = 1;
    841848                    $this->resetTempQuery(-1);
    842849                } 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                    }
    844855                    $retArray['q'] = $sql;
    845856                }
    846857            } 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               
    848864                $retArray['q'] = $sql;
    849865            }
  • local-sync/trunk/local-sync-bridge/wp-files/wp-db-custom.php

    r2245393 r2969699  
    811811        $modes_str = implode(',', $modes);
    812812
    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'" );
    815815        } 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 );
    817817        }
    818818    }
  • local-sync/trunk/local-sync-constants.php

    r2961665 r2969699  
    7676
    7777    public function versions(){
    78         $this->define( 'LOCAL_SYNC_VERSION', '1.1.5' );
     78        $this->define( 'LOCAL_SYNC_VERSION', '1.1.6' );
    7979        $this->define( 'LOCAL_SYNC_DATABASE_VERSION', '1.0' );
    8080    }
  • local-sync/trunk/local-sync.php

    r2961665 r2969699  
    1212 * Plugin URI:        https://localsync.io
    1313 * Description:       Easily migrate your WordPress Site from one host to another.
    14  * Version:           1.1.5
     14 * Version:           1.1.6
    1515 * Author:            Revmakx
    1616 * Author URI:        https://revmakx.com
Note: See TracChangeset for help on using the changeset viewer.