Version Description
Download this release
Release Info
Developer | cory@lamle.org |
Plugin | Duplicator – WordPress Migration Plugin |
Version | 1.4.7 |
Comparing to | |
See all releases |
Code changes from version 1.4.6 to 1.4.7
- classes/class.plugin.upgrade.php +12 -1
- define.php +2 -2
- duplicator.php +2 -2
- installer/dup-installer/main.installer.php +4 -4
- installer/dup-installer/views/view.s1.base.php +1 -1
- readme.txt +2 -2
- views/packages/main/s1.setup2.php +1 -1
- views/packages/main/s3.build.php +14 -13
classes/class.plugin.upgrade.php
CHANGED
@@ -35,12 +35,23 @@ class DUP_LITE_Plugin_Upgrade
|
|
35 |
{
|
36 |
self::updateDatabase();
|
37 |
|
38 |
-
//
|
|
|
39 |
if (version_compare($oldVersion, '1.3.35', '<')) {
|
40 |
DUP_Settings::Set('storage_position', DUP_Settings::STORAGE_POSITION_LECAGY);
|
41 |
DUP_Settings::Save();
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
//WordPress Options Hooks
|
45 |
update_option(self::DUP_VERSION_OPT_KEY, DUPLICATOR_VERSION);
|
46 |
}
|
35 |
{
|
36 |
self::updateDatabase();
|
37 |
|
38 |
+
//PRE 1.3.35
|
39 |
+
//Do not update to new wp-content storage till after
|
40 |
if (version_compare($oldVersion, '1.3.35', '<')) {
|
41 |
DUP_Settings::Set('storage_position', DUP_Settings::STORAGE_POSITION_LECAGY);
|
42 |
DUP_Settings::Save();
|
43 |
}
|
44 |
|
45 |
+
//PRE 1.4.7
|
46 |
+
//Remove the core dup-install file that might exist in local storage directory
|
47 |
+
if (version_compare($oldVersion, '1.4.7', '<')) {
|
48 |
+
$ssdir = DUP_Settings::getSsdirPath();
|
49 |
+
$dupInstallFile = "{$ssdir}/dup-installer/main.installer.php";
|
50 |
+
if (file_exists($dupInstallFile) ) {
|
51 |
+
@unlink("{$dupInstallFile}");
|
52 |
+
}
|
53 |
+
}
|
54 |
+
|
55 |
//WordPress Options Hooks
|
56 |
update_option(self::DUP_VERSION_OPT_KEY, DUPLICATOR_VERSION);
|
57 |
}
|
define.php
CHANGED
@@ -5,8 +5,8 @@ defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
|
5 |
|
6 |
if (function_exists('plugin_dir_url'))
|
7 |
{
|
8 |
-
define('DUPLICATOR_VERSION', '1.4.
|
9 |
-
define('DUPLICATOR_VERSION_BUILD', '2022-
|
10 |
define('DUPLICATOR_PLUGIN_URL', plugin_dir_url(__FILE__));
|
11 |
define('DUPLICATOR_SITE_URL', get_site_url());
|
12 |
|
5 |
|
6 |
if (function_exists('plugin_dir_url'))
|
7 |
{
|
8 |
+
define('DUPLICATOR_VERSION', '1.4.7');
|
9 |
+
define('DUPLICATOR_VERSION_BUILD', '2022-06-27_12:00');
|
10 |
define('DUPLICATOR_PLUGIN_URL', plugin_dir_url(__FILE__));
|
11 |
define('DUPLICATOR_SITE_URL', get_site_url());
|
12 |
|
duplicator.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
Plugin Name: Duplicator
|
4 |
Plugin URI: https://snapcreek.com/duplicator/duplicator-free/
|
5 |
Description: Migrate and backup a copy of your WordPress files and database. Duplicate and move a site from one location to another quickly.
|
6 |
-
Version: 1.4.
|
7 |
Requires at least: 4.0
|
8 |
-
Tested up to:
|
9 |
Requires PHP: 5.3.8
|
10 |
Author: Snap Creek
|
11 |
Author URI: http://www.snapcreek.com/duplicator/
|
3 |
Plugin Name: Duplicator
|
4 |
Plugin URI: https://snapcreek.com/duplicator/duplicator-free/
|
5 |
Description: Migrate and backup a copy of your WordPress files and database. Duplicate and move a site from one location to another quickly.
|
6 |
+
Version: 1.4.7
|
7 |
Requires at least: 4.0
|
8 |
+
Tested up to: 6.0
|
9 |
Requires PHP: 5.3.8
|
10 |
Author: Snap Creek
|
11 |
Author URI: http://www.snapcreek.com/duplicator/
|
installer/dup-installer/main.installer.php
CHANGED
@@ -127,8 +127,9 @@ try {
|
|
127 |
}
|
128 |
die('');
|
129 |
} else {
|
130 |
-
DUPX_Log::
|
131 |
-
|
|
|
132 |
}
|
133 |
} else {
|
134 |
if (!isset($_POST['archive'])) {
|
@@ -429,7 +430,6 @@ FORM DATA: User-Interface views -->
|
|
429 |
<div class="hdr">SERVER DETAILS</div>
|
430 |
<label>Web Server:</label> <?php echo DUPX_U::esc_html($_SERVER['SERVER_SOFTWARE']); ?><br/>
|
431 |
<label>PHP Version:</label> <?php echo DUPX_U::esc_html(DUPX_Server::$php_version); ?><br/>
|
432 |
-
<label>PHP INI Path:</label> <?php echo empty($ini_path ) ? 'Unable to detect loaded php.ini file' : $ini_path; ?> <br/>
|
433 |
<?php
|
434 |
$php_sapi_name = php_sapi_name();
|
435 |
?>
|
@@ -437,7 +437,7 @@ FORM DATA: User-Interface views -->
|
|
437 |
<label>PHP ZIP Archive:</label> <?php echo class_exists('ZipArchive') ? 'Is Installed' : 'Not Installed'; ?> <br/>
|
438 |
<label>PHP max_execution_time:</label> <?php echo $ini_max_time === false ? 'unable to find' : DUPX_U::esc_html($ini_max_time); ?><br/>
|
439 |
<label>PHP memory_limit:</label> <?php echo empty($ini_memory) ? 'unable to find' : DUPX_U::esc_html($ini_memory); ?><br/>
|
440 |
-
<label>Error Log Path:</label> <?php echo empty($ini_error_path)
|
441 |
|
442 |
<br/>
|
443 |
<div class="hdr">PACKAGE BUILD DETAILS</div>
|
127 |
}
|
128 |
die('');
|
129 |
} else {
|
130 |
+
DUPX_Log::setThrowExceptionOnError(false);
|
131 |
+
DUPX_Log::error("An invalid request was made to the 'DAWS' process.<br/>To protect this request from unauthorized access please "
|
132 |
+
. "restart this install process again by browsing to the installer file!<br/><br/>");
|
133 |
}
|
134 |
} else {
|
135 |
if (!isset($_POST['archive'])) {
|
430 |
<div class="hdr">SERVER DETAILS</div>
|
431 |
<label>Web Server:</label> <?php echo DUPX_U::esc_html($_SERVER['SERVER_SOFTWARE']); ?><br/>
|
432 |
<label>PHP Version:</label> <?php echo DUPX_U::esc_html(DUPX_Server::$php_version); ?><br/>
|
|
|
433 |
<?php
|
434 |
$php_sapi_name = php_sapi_name();
|
435 |
?>
|
437 |
<label>PHP ZIP Archive:</label> <?php echo class_exists('ZipArchive') ? 'Is Installed' : 'Not Installed'; ?> <br/>
|
438 |
<label>PHP max_execution_time:</label> <?php echo $ini_max_time === false ? 'unable to find' : DUPX_U::esc_html($ini_max_time); ?><br/>
|
439 |
<label>PHP memory_limit:</label> <?php echo empty($ini_memory) ? 'unable to find' : DUPX_U::esc_html($ini_memory); ?><br/>
|
440 |
+
<label>Error Log Path:</label> <?php echo empty($ini_error_path) ? 'unable to find' : '[installer_path]/dup-installer/php_error__[HASH].LOG'; ?><br/>
|
441 |
|
442 |
<br/>
|
443 |
<div class="hdr">PACKAGE BUILD DETAILS</div>
|
installer/dup-installer/views/view.s1.base.php
CHANGED
@@ -701,7 +701,7 @@ VALIDATION
|
|
701 |
<div class="info" id="s1-notice45">
|
702 |
<?php
|
703 |
$cssStyle = $notice['45'] == 'Good' ? 'color:green' : 'color:red';
|
704 |
-
echo "<b style='{$cssStyle}'>You are migrating site from
|
705 |
."If this servers PHP version is different from the PHP version of where the package was created it might cause problems with various parts of your website
|
706 |
and/or plugins and themes. It is highly recommended to try and use the same version of PHP if you are able to do so. This is simply a warning
|
707 |
and in the event no problems arise then you can igonre this message.<br/>";
|
701 |
<div class="info" id="s1-notice45">
|
702 |
<?php
|
703 |
$cssStyle = $notice['45'] == 'Good' ? 'color:green' : 'color:red';
|
704 |
+
echo "<b style='{$cssStyle}'>You are migrating site from PHP {$packagePHP} to PHP {$currentPHP}</b>.<br/>"
|
705 |
."If this servers PHP version is different from the PHP version of where the package was created it might cause problems with various parts of your website
|
706 |
and/or plugins and themes. It is highly recommended to try and use the same version of PHP if you are able to do so. This is simply a warning
|
707 |
and in the event no problems arise then you can igonre this message.<br/>";
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: migration, backup, duplicate, move, migrate, restore, transfer, clone, aut
|
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.3.8
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2
|
9 |
|
10 |
WordPress migration and backups are much easier with Duplicator! Clone, backup, move and transfer an entire site from one location to another.
|
@@ -49,6 +49,7 @@ Duplicator Pro takes Duplicator to the next level with features you'll really ap
|
|
49 |
* Install a multisite subsite as a new standalone website
|
50 |
* Database and user creation *in the installer* with cPanel API
|
51 |
* Connect to cPanel directly from installer
|
|
|
52 |
* Email notifications
|
53 |
* Professional support
|
54 |
* ... and much more!
|
@@ -62,7 +63,6 @@ The underlying logic to backup WordPress, move WordPress and transfer WordPress
|
|
62 |
This plugin does require some technical knowledge. If you plan to migrate WordPress or backup WordPress please use it at your own risk and don't forget to back up your files and databases beforehand. If you need to move or backup WordPress and would like additional help please visit the Duplicator [resources section](https://snapcreek.com/duplicator/docs/faqs-tech?utm_source=duplicator_free&utm_medium=wp_org&utm_content=free_disclaimer&utm_campaign=duplicator_free#faq-resource-030-q) .
|
63 |
|
64 |
= Active Contributors =
|
65 |
-
<li>[Prashant Baldha](https://profiles.wordpress.org/pmbaldha/) (Development)</li>
|
66 |
<li>[Andrea Leoni](https://profiles.wordpress.org/andreamk/) (Development)</li>
|
67 |
<li>[Paal Joachim Romdahl](http://www.easywebdesigntutorials.com) (Training)</li>
|
68 |
<li>[Hans-M. Herbrand](http://www.web266.de) (German) </li>
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.3.8
|
7 |
+
Stable tag: 1.4.7
|
8 |
License: GPLv2
|
9 |
|
10 |
WordPress migration and backups are much easier with Duplicator! Clone, backup, move and transfer an entire site from one location to another.
|
49 |
* Install a multisite subsite as a new standalone website
|
50 |
* Database and user creation *in the installer* with cPanel API
|
51 |
* Connect to cPanel directly from installer
|
52 |
+
* Custom plugin hooks for developers
|
53 |
* Email notifications
|
54 |
* Professional support
|
55 |
* ... and much more!
|
63 |
This plugin does require some technical knowledge. If you plan to migrate WordPress or backup WordPress please use it at your own risk and don't forget to back up your files and databases beforehand. If you need to move or backup WordPress and would like additional help please visit the Duplicator [resources section](https://snapcreek.com/duplicator/docs/faqs-tech?utm_source=duplicator_free&utm_medium=wp_org&utm_content=free_disclaimer&utm_campaign=duplicator_free#faq-resource-030-q) .
|
64 |
|
65 |
= Active Contributors =
|
|
|
66 |
<li>[Andrea Leoni](https://profiles.wordpress.org/andreamk/) (Development)</li>
|
67 |
<li>[Paal Joachim Romdahl](http://www.easywebdesigntutorials.com) (Training)</li>
|
68 |
<li>[Hans-M. Herbrand](http://www.web266.de) (German) </li>
|
views/packages/main/s1.setup2.php
CHANGED
@@ -20,7 +20,7 @@ defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
|
20 |
/*EXPANDER TITLE BOXES */
|
21 |
div.dup-box-title div.dup-title-txt {float:left}
|
22 |
div.dup-box-title
|
23 |
-
div.dup-title-icons { margin-top:-5px; font-weight:normal; font-size:13px;
|
24 |
div.dup-box-title div.dup-title-icons > span {border-left:1px solid silver; padding:2px 14px 5px 14px; user-select:none}
|
25 |
span#dup-installer-secure-lock, span#dup-installer-secure-unlock {border:none; padding:0 12px 5px 2px;}
|
26 |
|
20 |
/*EXPANDER TITLE BOXES */
|
21 |
div.dup-box-title div.dup-title-txt {float:left}
|
22 |
div.dup-box-title
|
23 |
+
div.dup-title-icons { margin-top:-5px; font-weight:normal; font-size:13px; float:left}
|
24 |
div.dup-box-title div.dup-title-icons > span {border-left:1px solid silver; padding:2px 14px 5px 14px; user-select:none}
|
25 |
span#dup-installer-secure-lock, span#dup-installer-secure-unlock {border:none; padding:0 12px 5px 2px;}
|
26 |
|
views/packages/main/s3.build.php
CHANGED
@@ -77,6 +77,7 @@ $rand_txt[0] = $atext0;
|
|
77 |
div.dup-howto-exe-area {display: flex; justify-content: center;}
|
78 |
div.dup-howto-exe-txt {text-align: left; font-size:16px}
|
79 |
div.dup-howto-exe-txt sup.modes {font-weight: normal; color:#999; font-style: italic;}
|
|
|
80 |
span#dup-installer-name {display:inline-block; color:silver; font-style: italic;}
|
81 |
span#dup-installer-name a {text-decoration: none}
|
82 |
span#dup-installer-name-help-icon {display:none}
|
@@ -230,13 +231,11 @@ TOOL BAR:STEPS -->
|
|
230 |
<div class="dup-howto-exe-info">
|
231 |
<div class="dup-howto-exe-area">
|
232 |
<div class="dup-howto-exe-txt">
|
233 |
-
|
234 |
-
<br/>
|
235 |
-
|
236 |
<!-- CLASSIC -->
|
237 |
<i class="far fa-save fa-sm fa-fw"></i>
|
238 |
-
<a href="https://snapcreek.com/duplicator/docs/quick-start/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=
|
239 |
-
<?php esc_html_e('Install to Empty
|
240 |
</a>
|
241 |
<sup class="modes">
|
242 |
<i class="fas fa-external-link-alt fa-xs"></i>
|
@@ -245,32 +244,34 @@ TOOL BAR:STEPS -->
|
|
245 |
|
246 |
<small>
|
247 |
<?php
|
248 |
-
_e('
|
249 |
?>
|
250 |
-
</small
|
251 |
|
252 |
<!-- OVERWRITE -->
|
253 |
<i class="far fa-window-close fa-sm fa-fw"></i>
|
254 |
-
<a href="https://snapcreek.com/duplicator/docs/quick-start/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=
|
255 |
-
<?php esc_html_e('Overwrite
|
256 |
</a>
|
257 |
<sup class="modes">
|
258 |
<i class="fas fa-external-link-alt fa-xs"></i>
|
259 |
</sup>
|
260 |
<br/>
|
261 |
-
|
|
|
|
|
262 |
|
263 |
|
264 |
<!-- IMPORT -->
|
265 |
<i class="fas fa-arrow-alt-circle-down fa-sm fa-fw"></i>
|
266 |
-
<a href="https://snapcreek.com/duplicator/docs/quick-start/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=
|
267 |
-
<?php esc_html_e('Import
|
268 |
</a>
|
269 |
<sup class="modes">
|
270 |
<i class="fas fa-external-link-alt fa-xs"></i>
|
271 |
</sup>
|
272 |
<br/>
|
273 |
-
<small><?php _e("
|
274 |
|
275 |
</div>
|
276 |
</div>
|
77 |
div.dup-howto-exe-area {display: flex; justify-content: center;}
|
78 |
div.dup-howto-exe-txt {text-align: left; font-size:16px}
|
79 |
div.dup-howto-exe-txt sup.modes {font-weight: normal; color:#999; font-style: italic;}
|
80 |
+
div.dup-howto-exe-txt small {padding:4px 0 4px 0}
|
81 |
span#dup-installer-name {display:inline-block; color:silver; font-style: italic;}
|
82 |
span#dup-installer-name a {text-decoration: none}
|
83 |
span#dup-installer-name-help-icon {display:none}
|
231 |
<div class="dup-howto-exe-info">
|
232 |
<div class="dup-howto-exe-area">
|
233 |
<div class="dup-howto-exe-txt">
|
234 |
+
|
|
|
|
|
235 |
<!-- CLASSIC -->
|
236 |
<i class="far fa-save fa-sm fa-fw"></i>
|
237 |
+
<a href="https://snapcreek.com/duplicator/docs/quick-start/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=package_built_install_help1_bwording2&utm_campaign=duplicator_free#quick-040-q" target="_blank">
|
238 |
+
<?php esc_html_e('Install to Empty Directory ', 'duplicator'); ?>
|
239 |
</a>
|
240 |
<sup class="modes">
|
241 |
<i class="fas fa-external-link-alt fa-xs"></i>
|
244 |
|
245 |
<small>
|
246 |
<?php
|
247 |
+
_e('Install to an empty directory like a new WordPress install does.', 'duplicator');
|
248 |
?>
|
249 |
+
</small><br/>
|
250 |
|
251 |
<!-- OVERWRITE -->
|
252 |
<i class="far fa-window-close fa-sm fa-fw"></i>
|
253 |
+
<a href="https://snapcreek.com/duplicator/docs/quick-start/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=package_built_install_help2_bwording2&utm_campaign=duplicator_free#quick-043-q" target="_blank">
|
254 |
+
<?php esc_html_e('Overwrite Site', 'duplicator'); ?>
|
255 |
</a>
|
256 |
<sup class="modes">
|
257 |
<i class="fas fa-external-link-alt fa-xs"></i>
|
258 |
</sup>
|
259 |
<br/>
|
260 |
+
|
261 |
+
<small><?php _e("Quickly overwrite an existing WordPress site in a few clicks.", 'duplicator');?></small>
|
262 |
+
<br/>
|
263 |
|
264 |
|
265 |
<!-- IMPORT -->
|
266 |
<i class="fas fa-arrow-alt-circle-down fa-sm fa-fw"></i>
|
267 |
+
<a href="https://snapcreek.com/duplicator/docs/quick-start/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=package_built_install_help3_bwording2&utm_campaign=duplicator_free#quick-045-q" target="_blank">
|
268 |
+
<?php esc_html_e('Import Archive and Overwrite Site', 'duplicator'); ?>
|
269 |
</a>
|
270 |
<sup class="modes">
|
271 |
<i class="fas fa-external-link-alt fa-xs"></i>
|
272 |
</sup>
|
273 |
<br/>
|
274 |
+
<small><?php _e("Drag-n-drop or use a URL for super-fast installs (requires Pro*)", 'duplicator');?></small>
|
275 |
|
276 |
</div>
|
277 |
</div>
|