Version Description
Added
- Translate button on the plugins page
Fixed
- Better PHP 7.4 compatibility
Download this release
Release Info
Developer | bangelov |
Plugin | All-in-One WP Migration |
Version | 7.27 |
Comparing to | |
See all releases |
Code changes from version 7.26 to 7.27
- all-in-one-wp-migration.php +1 -1
- constants.php +1 -1
- lib/controller/class-ai1wm-main-controller.php +1 -0
- lib/model/class-ai1wm-updater.php +28 -18
- lib/view/main/translate.php +31 -0
- readme.txt +10 -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.27
|
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.27' );
|
39 |
|
40 |
// ===============
|
41 |
// = Plugin Name =
|
lib/controller/class-ai1wm-main-controller.php
CHANGED
@@ -565,6 +565,7 @@ class Ai1wm_Main_Controller {
|
|
565 |
public function plugin_row_meta( $links, $file ) {
|
566 |
if ( $file === AI1WM_PLUGIN_BASENAME ) {
|
567 |
$links[] = Ai1wm_Template::get_content( 'main/get-support' );
|
|
|
568 |
}
|
569 |
|
570 |
return $links;
|
565 |
public function plugin_row_meta( $links, $file ) {
|
566 |
if ( $file === AI1WM_PLUGIN_BASENAME ) {
|
567 |
$links[] = Ai1wm_Template::get_content( 'main/get-support' );
|
568 |
+
$links[] = Ai1wm_Template::get_content( 'main/translate' );
|
569 |
}
|
570 |
|
571 |
return $links;
|
lib/model/class-ai1wm-updater.php
CHANGED
@@ -69,6 +69,11 @@ class Ai1wm_Updater {
|
|
69 |
public static function update_plugins( $transient ) {
|
70 |
global $wp_version;
|
71 |
|
|
|
|
|
|
|
|
|
|
|
72 |
// Get extensions
|
73 |
$extensions = Ai1wm_Extensions::get();
|
74 |
|
@@ -79,25 +84,30 @@ class Ai1wm_Updater {
|
|
79 |
foreach ( $updates as $slug => $update ) {
|
80 |
if ( isset( $extensions[ $slug ] ) && ( $extension = $extensions[ $slug ] ) ) {
|
81 |
if ( ( $purchase_id = get_option( $extension['key'] ) ) ) {
|
82 |
-
if ( version_compare( $extension['version'], $update['version'], '<' ) ) {
|
83 |
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
}
|
102 |
}
|
103 |
}
|
69 |
public static function update_plugins( $transient ) {
|
70 |
global $wp_version;
|
71 |
|
72 |
+
// Creating default object from empty value
|
73 |
+
if ( ! is_object( $transient ) ) {
|
74 |
+
$transient = (object) array();
|
75 |
+
}
|
76 |
+
|
77 |
// Get extensions
|
78 |
$extensions = Ai1wm_Extensions::get();
|
79 |
|
84 |
foreach ( $updates as $slug => $update ) {
|
85 |
if ( isset( $extensions[ $slug ] ) && ( $extension = $extensions[ $slug ] ) ) {
|
86 |
if ( ( $purchase_id = get_option( $extension['key'] ) ) ) {
|
|
|
87 |
|
88 |
+
// Get download URL
|
89 |
+
if ( $update['slug'] === 'file-extension' ) {
|
90 |
+
$download_url = add_query_arg( array( 'siteurl' => get_site_url() ), sprintf( '%s', $update['download_link'] ) );
|
91 |
+
} else {
|
92 |
+
$download_url = add_query_arg( array( 'siteurl' => get_site_url() ), sprintf( '%s/%s', $update['download_link'], $purchase_id ) );
|
93 |
+
}
|
94 |
+
|
95 |
+
// Set plugin details
|
96 |
+
$plugin_details = (object) array(
|
97 |
+
'slug' => $slug,
|
98 |
+
'new_version' => $update['version'],
|
99 |
+
'url' => $update['homepage'],
|
100 |
+
'plugin' => $extension['basename'],
|
101 |
+
'package' => $download_url,
|
102 |
+
'tested' => $wp_version,
|
103 |
+
'icons' => $update['icons'],
|
104 |
+
);
|
105 |
+
|
106 |
+
// Enable manual and auto updates
|
107 |
+
if ( version_compare( $extension['version'], $update['version'], '<' ) ) {
|
108 |
+
$transient->response[ $extension['basename'] ] = $plugin_details;
|
109 |
+
} else {
|
110 |
+
$transient->no_update[ $extension['basename'] ] = $plugin_details;
|
111 |
}
|
112 |
}
|
113 |
}
|
lib/view/main/translate.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Copyright (C) 2014-2020 ServMask Inc.
|
4 |
+
*
|
5 |
+
* This program is free software: you can redistribute it and/or modify
|
6 |
+
* it under the terms of the GNU General Public License as published by
|
7 |
+
* the Free Software Foundation, either version 3 of the License, or
|
8 |
+
* (at your option) any later version.
|
9 |
+
*
|
10 |
+
* This program is distributed in the hope that it will be useful,
|
11 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
+
* GNU General Public License for more details.
|
14 |
+
*
|
15 |
+
* You should have received a copy of the GNU General Public License
|
16 |
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17 |
+
*
|
18 |
+
* ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗
|
19 |
+
* ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝
|
20 |
+
* ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝
|
21 |
+
* ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗
|
22 |
+
* ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗
|
23 |
+
* ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
|
24 |
+
*/
|
25 |
+
|
26 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
27 |
+
die( 'Kangaroos cannot jump here' );
|
28 |
+
}
|
29 |
+
?>
|
30 |
+
|
31 |
+
<a href="https://translate.wordpress.org/projects/wp-plugins/all-in-one-wp-migration/" target="_blank"><?php _e( 'Translate', AI1WM_PLUGIN_NAME ); ?></a>
|
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.5
|
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,15 @@ 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.26 =
|
112 |
**Changed**
|
113 |
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 5.5
|
6 |
Requires PHP: 5.2.17
|
7 |
+
Stable tag: 7.27
|
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.27 =
|
112 |
+
**Added**
|
113 |
+
|
114 |
+
* Translate button on the plugins page
|
115 |
+
|
116 |
+
**Fixed**
|
117 |
+
|
118 |
+
* Better PHP 7.4 compatibility
|
119 |
+
|
120 |
= 7.26 =
|
121 |
**Changed**
|
122 |
|