Version Description
Fixed
- Backups with a modified wp-content path cannot be downloaded
Download this release
Release Info
| Developer | bangelov |
| Plugin | |
| Version | 7.67 |
| Comparing to | |
| See all releases | |
Code changes from version 7.66 to 7.67
- all-in-one-wp-migration.php +1 -1
- constants.php +1 -1
- functions.php +11 -4
- lib/model/class-ai1wm-backups.php +14 -2
- readme.txt +7 -2
all-in-one-wp-migration.php
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
* Description: Migration tool for all your blog data. Import or Export your blog content with a single click.
|
| 6 |
* Author: ServMask
|
| 7 |
* Author URI: https://servmask.com/
|
| 8 |
-
* Version: 7.
|
| 9 |
* Text Domain: all-in-one-wp-migration
|
| 10 |
* Domain Path: /languages
|
| 11 |
* Network: True
|
| 5 |
* Description: Migration tool for all your blog data. Import or Export your blog content with a single click.
|
| 6 |
* Author: ServMask
|
| 7 |
* Author URI: https://servmask.com/
|
| 8 |
+
* Version: 7.67
|
| 9 |
* Text Domain: all-in-one-wp-migration
|
| 10 |
* Domain Path: /languages
|
| 11 |
* Network: True
|
constants.php
CHANGED
|
@@ -35,7 +35,7 @@ define( 'AI1WM_DEBUG', false );
|
|
| 35 |
// ==================
|
| 36 |
// = Plugin Version =
|
| 37 |
// ==================
|
| 38 |
-
define( 'AI1WM_VERSION', '7.
|
| 39 |
|
| 40 |
// ===============
|
| 41 |
// = Plugin Name =
|
| 35 |
// ==================
|
| 36 |
// = Plugin Version =
|
| 37 |
// ==================
|
| 38 |
+
define( 'AI1WM_VERSION', '7.67' );
|
| 39 |
|
| 40 |
// ===============
|
| 41 |
// = Plugin Name =
|
functions.php
CHANGED
|
@@ -316,10 +316,17 @@ function ai1wm_archive_name( $params ) {
|
|
| 316 |
function ai1wm_backup_url( $params ) {
|
| 317 |
static $backups_base_url = '';
|
| 318 |
if ( empty( $backups_base_url ) ) {
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
}
|
| 324 |
|
| 325 |
return $backups_base_url . '/' . ai1wm_replace_directory_separator_with_forward_slash( $params['archive'] );
|
| 316 |
function ai1wm_backup_url( $params ) {
|
| 317 |
static $backups_base_url = '';
|
| 318 |
if ( empty( $backups_base_url ) ) {
|
| 319 |
+
if ( Ai1wm_Backups::are_in_wp_content_folder() ) {
|
| 320 |
+
$backups_base_url = str_replace( untrailingslashit( WP_CONTENT_DIR ), '', AI1WM_BACKUPS_PATH );
|
| 321 |
+
$backups_base_url = content_url(
|
| 322 |
+
ai1wm_replace_directory_separator_with_forward_slash( $backups_base_url )
|
| 323 |
+
);
|
| 324 |
+
} else {
|
| 325 |
+
$backups_base_url = str_replace( untrailingslashit( ABSPATH ), '', AI1WM_BACKUPS_PATH );
|
| 326 |
+
$backups_base_url = site_url(
|
| 327 |
+
ai1wm_replace_directory_separator_with_forward_slash( $backups_base_url )
|
| 328 |
+
);
|
| 329 |
+
}
|
| 330 |
}
|
| 331 |
|
| 332 |
return $backups_base_url . '/' . ai1wm_replace_directory_separator_with_forward_slash( $params['archive'] );
|
lib/model/class-ai1wm-backups.php
CHANGED
|
@@ -163,8 +163,20 @@ class Ai1wm_Backups {
|
|
| 163 |
* Check if backups are downloadable
|
| 164 |
*/
|
| 165 |
public static function are_downloadable() {
|
| 166 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
|
| 168 |
-
return
|
| 169 |
}
|
| 170 |
}
|
| 163 |
* Check if backups are downloadable
|
| 164 |
*/
|
| 165 |
public static function are_downloadable() {
|
| 166 |
+
static $downloadable = null;
|
| 167 |
+
if ( is_null( $downloadable ) ) {
|
| 168 |
+
$downloadable = Ai1wm_Backups::are_in_wp_content_folder() || strpos( AI1WM_BACKUPS_PATH, untrailingslashit( ABSPATH ) ) === 0;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
return $downloadable;
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
public static function are_in_wp_content_folder() {
|
| 175 |
+
static $in_wp_content = null;
|
| 176 |
+
if ( is_null( $in_wp_content ) ) {
|
| 177 |
+
$in_wp_content = strpos( AI1WM_BACKUPS_PATH, untrailingslashit( WP_CONTENT_DIR ) ) === 0;
|
| 178 |
+
}
|
| 179 |
|
| 180 |
+
return $in_wp_content;
|
| 181 |
}
|
| 182 |
}
|
readme.txt
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
Contributors: yani.iliev, bangelov, pimjitsawang
|
| 3 |
Tags: move, transfer, copy, migrate, backup, clone, restore, db migration, wordpress migration, website migration, database export, database import, apoyo, sauvegarde, di riserva, バックアップ
|
| 4 |
Requires at least: 3.3
|
| 5 |
-
Tested up to: 6.
|
| 6 |
Requires PHP: 5.2.17
|
| 7 |
-
Stable tag: 7.
|
| 8 |
License: GPLv2 or later
|
| 9 |
|
| 10 |
Move, transfer, copy, migrate, and backup a site with 1-click. Quick, easy, and reliable.
|
|
@@ -89,6 +89,11 @@ All-in-One WP Migration is in full compliance with General Data Protection Regul
|
|
| 89 |
See our [GDPR Compliant Privacy Policy here](https://www.iubenda.com/privacy-policy/946881).
|
| 90 |
|
| 91 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
= 7.66 =
|
| 93 |
**Added**
|
| 94 |
|
| 2 |
Contributors: yani.iliev, bangelov, pimjitsawang
|
| 3 |
Tags: move, transfer, copy, migrate, backup, clone, restore, db migration, wordpress migration, website migration, database export, database import, apoyo, sauvegarde, di riserva, バックアップ
|
| 4 |
Requires at least: 3.3
|
| 5 |
+
Tested up to: 6.1
|
| 6 |
Requires PHP: 5.2.17
|
| 7 |
+
Stable tag: 7.67
|
| 8 |
License: GPLv2 or later
|
| 9 |
|
| 10 |
Move, transfer, copy, migrate, and backup a site with 1-click. Quick, easy, and reliable.
|
| 89 |
See our [GDPR Compliant Privacy Policy here](https://www.iubenda.com/privacy-policy/946881).
|
| 90 |
|
| 91 |
== Changelog ==
|
| 92 |
+
= 7.67 =
|
| 93 |
+
**Fixed**
|
| 94 |
+
|
| 95 |
+
* Backups with a modified wp-content path cannot be downloaded
|
| 96 |
+
|
| 97 |
= 7.66 =
|
| 98 |
**Added**
|
| 99 |
|
