Version Description
Added
- Improved reliability
Download this release
Release Info
| Developer | bangelov |
| Plugin | |
| Version | 7.43 |
| Comparing to | |
| See all releases | |
Code changes from version 7.42 to 7.43
- all-in-one-wp-migration.php +1 -1
- constants.php +6 -1
- lib/controller/class-ai1wm-updater-controller.php +10 -0
- lib/model/class-ai1wm-updater.php +18 -16
- readme.txt +6 -1
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.43
|
| 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 =
|
|
@@ -342,6 +342,11 @@ define( 'AI1WM_BACKUPS_LABELS', 'ai1wm_backups_labels' );
|
|
| 342 |
// ===============
|
| 343 |
define( 'AI1WM_SITES_LINKS', 'ai1wm_sites_links' );
|
| 344 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 345 |
// ===============
|
| 346 |
// = Updater Key =
|
| 347 |
// ===============
|
| 35 |
// ==================
|
| 36 |
// = Plugin Version =
|
| 37 |
// ==================
|
| 38 |
+
define( 'AI1WM_VERSION', '7.43' );
|
| 39 |
|
| 40 |
// ===============
|
| 41 |
// = Plugin Name =
|
| 342 |
// ===============
|
| 343 |
define( 'AI1WM_SITES_LINKS', 'ai1wm_sites_links' );
|
| 344 |
|
| 345 |
+
// ==============================
|
| 346 |
+
// = Last Check For Updates Key =
|
| 347 |
+
// ==============================
|
| 348 |
+
define( 'AI1WM_LAST_CHECK_FOR_UPDATES', 'ai1wm_last_check_for_updates' );
|
| 349 |
+
|
| 350 |
// ===============
|
| 351 |
// = Updater Key =
|
| 352 |
// ===============
|
lib/controller/class-ai1wm-updater-controller.php
CHANGED
|
@@ -38,6 +38,16 @@ class Ai1wm_Updater_Controller {
|
|
| 38 |
return $transient;
|
| 39 |
}
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
// Check for updates
|
| 42 |
Ai1wm_Updater::check_for_updates();
|
| 43 |
|
| 38 |
return $transient;
|
| 39 |
}
|
| 40 |
|
| 41 |
+
// Check for updates every 11 hours
|
| 42 |
+
if ( ( $last_check_for_updates = get_site_transient( AI1WM_LAST_CHECK_FOR_UPDATES ) ) ) {
|
| 43 |
+
if ( ( time() - $last_check_for_updates ) < 11 * HOUR_IN_SECONDS ) {
|
| 44 |
+
return $transient;
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
// Set last check for updates
|
| 49 |
+
set_site_transient( AI1WM_LAST_CHECK_FOR_UPDATES, time() );
|
| 50 |
+
|
| 51 |
// Check for updates
|
| 52 |
Ai1wm_Updater::check_for_updates();
|
| 53 |
|
lib/model/class-ai1wm-updater.php
CHANGED
|
@@ -84,7 +84,7 @@ class Ai1wm_Updater {
|
|
| 84 |
if ( ( $purchase_id = get_option( $extension['key'] ) ) ) {
|
| 85 |
|
| 86 |
// Get download URL
|
| 87 |
-
if ( $
|
| 88 |
$download_url = add_query_arg( array( 'siteurl' => get_site_url() ), sprintf( '%s', $update['download_link'] ) );
|
| 89 |
} else {
|
| 90 |
$download_url = add_query_arg( array( 'siteurl' => get_site_url() ), sprintf( '%s/%s', $update['download_link'], $purchase_id ) );
|
|
@@ -143,21 +143,23 @@ class Ai1wm_Updater {
|
|
| 143 |
}
|
| 144 |
|
| 145 |
// Add plugin messages
|
| 146 |
-
if (
|
| 147 |
-
$
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
if (
|
| 160 |
-
$updater[ $slug ]
|
|
|
|
|
|
|
| 161 |
}
|
| 162 |
}
|
| 163 |
}
|
| 84 |
if ( ( $purchase_id = get_option( $extension['key'] ) ) ) {
|
| 85 |
|
| 86 |
// Get download URL
|
| 87 |
+
if ( $slug === 'all-in-one-wp-migration-file-extension' ) {
|
| 88 |
$download_url = add_query_arg( array( 'siteurl' => get_site_url() ), sprintf( '%s', $update['download_link'] ) );
|
| 89 |
} else {
|
| 90 |
$download_url = add_query_arg( array( 'siteurl' => get_site_url() ), sprintf( '%s/%s', $update['download_link'], $purchase_id ) );
|
| 143 |
}
|
| 144 |
|
| 145 |
// Add plugin messages
|
| 146 |
+
if ( $slug !== 'all-in-one-wp-migration-file-extension' ) {
|
| 147 |
+
if ( ( $purchase_id = get_option( $extension['key'] ) ) ) {
|
| 148 |
+
$check = wp_remote_get(
|
| 149 |
+
add_query_arg( array( 'site_url' => get_site_url(), 'admin_email' => get_option( 'admin_email' ) ), sprintf( '%s/%s', $extension['check'], $purchase_id ) ),
|
| 150 |
+
array(
|
| 151 |
+
'timeout' => 15,
|
| 152 |
+
'headers' => array( 'Accept' => 'application/json' ),
|
| 153 |
+
)
|
| 154 |
+
);
|
| 155 |
+
|
| 156 |
+
// Add plugin checks
|
| 157 |
+
if ( ! is_wp_error( $check ) ) {
|
| 158 |
+
$body = wp_remote_retrieve_body( $check );
|
| 159 |
+
if ( ( $data = json_decode( $body, true ) ) ) {
|
| 160 |
+
if ( isset( $updater[ $slug ], $data['message'] ) ) {
|
| 161 |
+
$updater[ $slug ]['update_message'] = $data['message'];
|
| 162 |
+
}
|
| 163 |
}
|
| 164 |
}
|
| 165 |
}
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: move, transfer, copy, migrate, backup, clone, restore, db migration, wordp
|
|
| 4 |
Requires at least: 3.3
|
| 5 |
Tested up to: 5.7
|
| 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.
|
|
@@ -108,6 +108,11 @@ Alternatively you can download the plugin using the download button on this page
|
|
| 108 |
All-in-One WP Migration **asks for your consent** to collect **requester's email address** when filling plugin's contact form. [GDPR Compliant Privacy Policy](https://www.iubenda.com/privacy-policy/946881)
|
| 109 |
|
| 110 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
= 7.42 =
|
| 112 |
**Added**
|
| 113 |
|
| 4 |
Requires at least: 3.3
|
| 5 |
Tested up to: 5.7
|
| 6 |
Requires PHP: 5.2.17
|
| 7 |
+
Stable tag: 7.43
|
| 8 |
License: GPLv2 or later
|
| 9 |
|
| 10 |
Move, transfer, copy, migrate, and backup a site with 1-click. Quick, easy, and reliable.
|
| 108 |
All-in-One WP Migration **asks for your consent** to collect **requester's email address** when filling plugin's contact form. [GDPR Compliant Privacy Policy](https://www.iubenda.com/privacy-policy/946881)
|
| 109 |
|
| 110 |
== Changelog ==
|
| 111 |
+
= 7.43 =
|
| 112 |
+
**Added**
|
| 113 |
+
|
| 114 |
+
* Improved reliability
|
| 115 |
+
|
| 116 |
= 7.42 =
|
| 117 |
**Added**
|
| 118 |
|
