Version Description
Download this release
Release Info
Developer | elenachavdarova |
Plugin | SiteGround Migrator |
Version | 2.0.4 |
Comparing to | |
See all releases |
Code changes from version 2.0.3 to 2.0.4
README.txt
CHANGED
@@ -46,6 +46,11 @@ In version 1.0.13 we've added WP-CLI command for migrations.
|
|
46 |
|
47 |
== Changelog ==
|
48 |
|
|
|
|
|
|
|
|
|
|
|
49 |
= Version 2.0.3 =
|
50 |
Release Date: Nov 1st, 2022
|
51 |
|
46 |
|
47 |
== Changelog ==
|
48 |
|
49 |
+
= Version 2.0.4 =
|
50 |
+
Release Date: Nov 8th, 2022
|
51 |
+
|
52 |
+
* Improved SiteGround Security plugin support
|
53 |
+
|
54 |
= Version 2.0.3 =
|
55 |
Release Date: Nov 1st, 2022
|
56 |
|
core/Files_Service/Files_Service.php
CHANGED
@@ -191,6 +191,14 @@ class Files_Service {
|
|
191 |
// Copy the directory, so that we can manipulate the files without hurting performance.
|
192 |
copy_dir( $source_path, $source_path . '-transfer' );
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
// Archvie the new directory.
|
195 |
$this->archive_dir( $source_path . '-transfer', $archive_filename );
|
196 |
|
191 |
// Copy the directory, so that we can manipulate the files without hurting performance.
|
192 |
copy_dir( $source_path, $source_path . '-transfer' );
|
193 |
|
194 |
+
// SGS Encrypt file include.
|
195 |
+
if ( preg_match( '~plugins\/sg-security$~', $source_path ) ) {
|
196 |
+
// Copy the wp-content/sgs_encrypt_key.php into the plugin directory.
|
197 |
+
if ( $wp_filesystem->is_file( WP_CONTENT_DIR . '/sgs_encrypt_key.php' ) ) {
|
198 |
+
$wp_filesystem->copy( WP_CONTENT_DIR . '/sgs_encrypt_key.php', $source_path . '-transfer/sgs_encrypt_key.php' );
|
199 |
+
}
|
200 |
+
}
|
201 |
+
|
202 |
// Archvie the new directory.
|
203 |
$this->archive_dir( $source_path . '-transfer', $archive_filename );
|
204 |
|
siteground-migrator.php
CHANGED
@@ -24,7 +24,7 @@ use ShuttleExport\Exporter;
|
|
24 |
* Plugin Name: SiteGround Migrator
|
25 |
* Plugin URI: http://siteground.com
|
26 |
* Description: This plugin is designed to migrate your WordPress site to SiteGround
|
27 |
-
* Version: 2.0.
|
28 |
* Author: SiteGround
|
29 |
* Author URI: https://www.siteground.com
|
30 |
* License: GPL-2.0+
|
@@ -40,7 +40,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
40 |
|
41 |
// Define version constant.
|
42 |
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
|
43 |
-
define( __NAMESPACE__ . '\VERSION', '2.0.
|
44 |
}
|
45 |
|
46 |
// Define slug constant.
|
24 |
* Plugin Name: SiteGround Migrator
|
25 |
* Plugin URI: http://siteground.com
|
26 |
* Description: This plugin is designed to migrate your WordPress site to SiteGround
|
27 |
+
* Version: 2.0.4
|
28 |
* Author: SiteGround
|
29 |
* Author URI: https://www.siteground.com
|
30 |
* License: GPL-2.0+
|
40 |
|
41 |
// Define version constant.
|
42 |
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
|
43 |
+
define( __NAMESPACE__ . '\VERSION', '2.0.4' );
|
44 |
}
|
45 |
|
46 |
// Define slug constant.
|
vendor/siteground/siteground-helper/.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
/vendor/
|
2 |
+
.DS_Store
|
3 |
+
/.DS_Store
|
vendor/siteground/siteground-i18n/.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
/vendor/
|
2 |
+
.DS_Store
|
3 |
+
/.DS_Store
|