Version Description
Download this release
Release Info
Developer | cory@lamle.org |
Plugin | Duplicator – WordPress Migration Plugin |
Version | 1.2.52 |
Comparing to | |
See all releases |
Code changes from version 1.2.50 to 1.2.52
- define.php +1 -1
- duplicator.php +77 -1
- readme.txt +1 -1
- views/packages/main/s2.scan1.php +1 -1
- views/packages/main/s2.scan3.php +2 -2
- views/packages/main/s3.build.php +1 -1
define.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
//Prevent directly browsing to the file
|
3 |
if (function_exists('plugin_dir_url'))
|
4 |
{
|
5 |
-
define('DUPLICATOR_VERSION', '1.2.
|
6 |
define('DUPLICATOR_HOMEPAGE', 'https://snapcreek.com/duplicator/duplicator-free/');
|
7 |
define('DUPLICATOR_PLUGIN_URL', plugin_dir_url(__FILE__));
|
8 |
define('DUPLICATOR_SITE_URL', get_site_url());
|
2 |
//Prevent directly browsing to the file
|
3 |
if (function_exists('plugin_dir_url'))
|
4 |
{
|
5 |
+
define('DUPLICATOR_VERSION', '1.2.52');
|
6 |
define('DUPLICATOR_HOMEPAGE', 'https://snapcreek.com/duplicator/duplicator-free/');
|
7 |
define('DUPLICATOR_PLUGIN_URL', plugin_dir_url(__FILE__));
|
8 |
define('DUPLICATOR_SITE_URL', get_site_url());
|
duplicator.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.2.
|
7 |
Author: Snap Creek
|
8 |
Author URI: http://www.snapcreek.com/duplicator/
|
9 |
Text Domain: duplicator
|
@@ -30,6 +30,82 @@
|
|
30 |
|
31 |
require_once("define.php");
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
if (is_admin() == true)
|
34 |
{
|
35 |
//Classes
|
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.2.52
|
7 |
Author: Snap Creek
|
8 |
Author URI: http://www.snapcreek.com/duplicator/
|
9 |
Text Domain: duplicator
|
30 |
|
31 |
require_once("define.php");
|
32 |
|
33 |
+
if (!function_exists('sanitize_textarea_field')) {
|
34 |
+
/**
|
35 |
+
* Sanitizes a multiline string from user input or from the database.
|
36 |
+
*
|
37 |
+
* The function is like sanitize_text_field(), but preserves
|
38 |
+
* new lines (\n) and other whitespace, which are legitimate
|
39 |
+
* input in textarea elements.
|
40 |
+
*
|
41 |
+
* @see sanitize_text_field()
|
42 |
+
*
|
43 |
+
* @since 4.7.0
|
44 |
+
*
|
45 |
+
* @param string $str String to sanitize.
|
46 |
+
* @return string Sanitized string.
|
47 |
+
*/
|
48 |
+
function sanitize_textarea_field($str)
|
49 |
+
{
|
50 |
+
$filtered = _sanitize_text_fields($str, true);
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Filters a sanitized textarea field string.
|
54 |
+
*
|
55 |
+
* @since 4.7.0
|
56 |
+
*
|
57 |
+
* @param string $filtered The sanitized string.
|
58 |
+
* @param string $str The string prior to being sanitized.
|
59 |
+
*/
|
60 |
+
return apply_filters('sanitize_textarea_field', $filtered, $str);
|
61 |
+
}
|
62 |
+
}
|
63 |
+
|
64 |
+
if (!function_exists('_sanitize_text_fields')) {
|
65 |
+
/**
|
66 |
+
* Internal helper function to sanitize a string from user input or from the db
|
67 |
+
*
|
68 |
+
* @since 4.7.0
|
69 |
+
* @access private
|
70 |
+
*
|
71 |
+
* @param string $str String to sanitize.
|
72 |
+
* @param bool $keep_newlines optional Whether to keep newlines. Default: false.
|
73 |
+
* @return string Sanitized string.
|
74 |
+
*/
|
75 |
+
function _sanitize_text_fields($str, $keep_newlines = false)
|
76 |
+
{
|
77 |
+
$filtered = wp_check_invalid_utf8($str);
|
78 |
+
|
79 |
+
if (strpos($filtered, '<') !== false) {
|
80 |
+
$filtered = wp_pre_kses_less_than($filtered);
|
81 |
+
// This will strip extra whitespace for us.
|
82 |
+
$filtered = wp_strip_all_tags($filtered, false);
|
83 |
+
|
84 |
+
// Use html entities in a special case to make sure no later
|
85 |
+
// newline stripping stage could lead to a functional tag
|
86 |
+
$filtered = str_replace("<\n", "<\n", $filtered);
|
87 |
+
}
|
88 |
+
|
89 |
+
if (! $keep_newlines) {
|
90 |
+
$filtered = preg_replace('/[\r\n\t ]+/', ' ', $filtered);
|
91 |
+
}
|
92 |
+
$filtered = trim($filtered);
|
93 |
+
|
94 |
+
$found = false;
|
95 |
+
while (preg_match('/%[a-f0-9]{2}/i', $filtered, $match)) {
|
96 |
+
$filtered = str_replace($match[0], '', $filtered);
|
97 |
+
$found = true;
|
98 |
+
}
|
99 |
+
|
100 |
+
if ($found) {
|
101 |
+
// Strip out the whitespace that may now exist after removing the octets.
|
102 |
+
$filtered = trim(preg_replace('/ +/', ' ', $filtered));
|
103 |
+
}
|
104 |
+
|
105 |
+
return $filtered;
|
106 |
+
}
|
107 |
+
}
|
108 |
+
|
109 |
if (is_admin() == true)
|
110 |
{
|
111 |
//Classes
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: migration, backup, restore, move, migrate, duplicate, transfer, clone, aut
|
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9
|
6 |
Requires PHP: 5.2.17
|
7 |
-
Stable tag: 1.2.
|
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.
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9
|
6 |
Requires PHP: 5.2.17
|
7 |
+
Stable tag: 1.2.52
|
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.
|
views/packages/main/s2.scan1.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
//Nonce Check
|
3 |
if (! isset( $_POST['dup_form_opts_nonce_field'] ) || ! wp_verify_nonce( $_POST['dup_form_opts_nonce_field'], 'dup_form_opts' ) ) {
|
4 |
-
DUP_UI_Notice::redirect('admin.php?page=duplicator&tab=new1');
|
5 |
}
|
6 |
|
7 |
global $wp_version;
|
1 |
<?php
|
2 |
//Nonce Check
|
3 |
if (! isset( $_POST['dup_form_opts_nonce_field'] ) || ! wp_verify_nonce( $_POST['dup_form_opts_nonce_field'], 'dup_form_opts' ) ) {
|
4 |
+
DUP_UI_Notice::redirect('admin.php?page=duplicator&tab=new1&_wpnonce='.wp_create_nonce('new1-package'));
|
5 |
}
|
6 |
|
7 |
global $wp_version;
|
views/packages/main/s2.scan3.php
CHANGED
@@ -131,7 +131,7 @@ TOTAL SIZE -->
|
|
131 |
|
132 |
<div class="apply-btn" style="margin-bottom:5px;float:right">
|
133 |
<div class="apply-warn">
|
134 |
-
<?php esc_html_e('*Checking a directory will exclude all items recursively from that path down
|
135 |
</div>
|
136 |
<button type="button" class="button-small" onclick="Duplicator.Pack.applyFilters(this, 'large')">
|
137 |
<i class="fa fa-filter"></i> <?php _e('Add Filters & Rescan', 'duplicator');?>
|
@@ -265,7 +265,7 @@ FILE NAME CHECKS -->
|
|
265 |
</div>
|
266 |
<div class="apply-btn">
|
267 |
<div class="apply-warn">
|
268 |
-
<?php esc_html_e('*Checking a directory will exclude all items recursively from that path down
|
269 |
</div>
|
270 |
<button type="button" class="button-small" onclick="Duplicator.Pack.applyFilters(this, 'utf8')">
|
271 |
<i class="fa fa-filter"></i> <?php esc_html_e('Add Filters & Rescan', 'duplicator');?>
|
131 |
|
132 |
<div class="apply-btn" style="margin-bottom:5px;float:right">
|
133 |
<div class="apply-warn">
|
134 |
+
<?php esc_html_e('*Checking a directory will exclude all items recursively from that path down. Please use caution when filtering directories.', 'duplicator'); ?>
|
135 |
</div>
|
136 |
<button type="button" class="button-small" onclick="Duplicator.Pack.applyFilters(this, 'large')">
|
137 |
<i class="fa fa-filter"></i> <?php _e('Add Filters & Rescan', 'duplicator');?>
|
265 |
</div>
|
266 |
<div class="apply-btn">
|
267 |
<div class="apply-warn">
|
268 |
+
<?php esc_html_e('*Checking a directory will exclude all items recursively from that path down. Please use caution when filtering directories.', 'duplicator'); ?>
|
269 |
</div>
|
270 |
<button type="button" class="button-small" onclick="Duplicator.Pack.applyFilters(this, 'utf8')">
|
271 |
<i class="fa fa-filter"></i> <?php esc_html_e('Add Filters & Rescan', 'duplicator');?>
|
views/packages/main/s3.build.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
//Nonce Check
|
3 |
if (! isset( $_POST['dup_form_opts_nonce_field'] ) || ! wp_verify_nonce( $_POST['dup_form_opts_nonce_field'], 'dup_form_opts' ) ) {
|
4 |
-
DUP_UI_Notice::redirect('admin.php?page=duplicator&tab=new1');
|
5 |
}
|
6 |
|
7 |
$Package = DUP_Package::getActive();
|
1 |
<?php
|
2 |
//Nonce Check
|
3 |
if (! isset( $_POST['dup_form_opts_nonce_field'] ) || ! wp_verify_nonce( $_POST['dup_form_opts_nonce_field'], 'dup_form_opts' ) ) {
|
4 |
+
DUP_UI_Notice::redirect('admin.php?page=duplicator&tab=new1&_wpnonce='.wp_create_nonce('new1-package'));
|
5 |
}
|
6 |
|
7 |
$Package = DUP_Package::getActive();
|