Version Description
Changed
- Hide the backups count if there are no backups
Download this release
Release Info
Developer | bangelov |
Plugin | All-in-One WP Migration |
Version | 7.58 |
Comparing to | |
See all releases |
Code changes from version 7.57 to 7.58
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.58
|
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.58' );
|
39 |
|
40 |
// ===============
|
41 |
// = Plugin Name =
|
lib/controller/class-ai1wm-main-controller.php
CHANGED
@@ -775,6 +775,8 @@ class Ai1wm_Main_Controller {
|
|
775 |
'how_may_we_help_you' => __( 'How may we help you?', AI1WM_PLUGIN_NAME ),
|
776 |
'thanks_for_submitting_your_feedback' => __( 'Thanks for submitting your feedback!', AI1WM_PLUGIN_NAME ),
|
777 |
'thanks_for_submitting_your_request' => __( 'Thanks for submitting your request!', AI1WM_PLUGIN_NAME ),
|
|
|
|
|
778 |
)
|
779 |
);
|
780 |
}
|
@@ -1073,6 +1075,8 @@ class Ai1wm_Main_Controller {
|
|
1073 |
'Free up %s of disk space.',
|
1074 |
AI1WM_PLUGIN_NAME
|
1075 |
),
|
|
|
|
|
1076 |
)
|
1077 |
);
|
1078 |
}
|
775 |
'how_may_we_help_you' => __( 'How may we help you?', AI1WM_PLUGIN_NAME ),
|
776 |
'thanks_for_submitting_your_feedback' => __( 'Thanks for submitting your feedback!', AI1WM_PLUGIN_NAME ),
|
777 |
'thanks_for_submitting_your_request' => __( 'Thanks for submitting your request!', AI1WM_PLUGIN_NAME ),
|
778 |
+
'backups_count_singular' => __( 'You have %d backup', AI1WM_PLUGIN_NAME ),
|
779 |
+
'backups_count_plural' => __( 'You have %d backups', AI1WM_PLUGIN_NAME ),
|
780 |
)
|
781 |
);
|
782 |
}
|
1075 |
'Free up %s of disk space.',
|
1076 |
AI1WM_PLUGIN_NAME
|
1077 |
),
|
1078 |
+
'backups_count_singular' => __( 'You have %d backup', AI1WM_PLUGIN_NAME ),
|
1079 |
+
'backups_count_plural' => __( 'You have %d backups', AI1WM_PLUGIN_NAME ),
|
1080 |
)
|
1081 |
);
|
1082 |
}
|
lib/view/assets/javascript/backups.min.js
CHANGED
@@ -514,7 +514,18 @@ var Modal = function Modal() {
|
|
514 |
|
515 |
var closeButton = $('<button type="button" class="ai1wm-button-red"></button>').on('click', function () {
|
516 |
self.destroy();
|
517 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
518 |
|
519 |
closeButton.append(ai1wm_locale.close_export); // Append close button to action
|
520 |
|
@@ -1659,8 +1670,7 @@ jQuery(document).ready(function ($) {
|
|
1659 |
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-dots', function (e) {
|
1660 |
e.preventDefault();
|
1661 |
e.stopPropagation();
|
1662 |
-
var menu = $(this).next('div.ai1wm-backup-dots-menu');
|
1663 |
-
|
1664 |
$('div.ai1wm-backup-dots-menu').not(menu).hide();
|
1665 |
$(menu).toggle();
|
1666 |
});
|
@@ -1669,7 +1679,8 @@ jQuery(document).ready(function ($) {
|
|
1669 |
}); // Delete file
|
1670 |
|
1671 |
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-delete', function (e) {
|
1672 |
-
var self = $(this);
|
|
|
1673 |
|
1674 |
/* eslint-disable no-alert */
|
1675 |
|
@@ -1689,6 +1700,17 @@ jQuery(document).ready(function ($) {
|
|
1689 |
}).done(function (data) {
|
1690 |
if (data.errors.length === 0) {
|
1691 |
self.closest('tr').remove();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1692 |
|
1693 |
if ($('.ai1wm-backups tbody tr').length === 1) {
|
1694 |
$('.ai1wm-backups').hide();
|
514 |
|
515 |
var closeButton = $('<button type="button" class="ai1wm-button-red"></button>').on('click', function () {
|
516 |
self.destroy();
|
517 |
+
});
|
518 |
+
var counter = $('.ai1wm-menu-count'); // Update counter text
|
519 |
+
|
520 |
+
counter.text(+counter.text() + 1);
|
521 |
+
|
522 |
+
if (counter.text() > 1) {
|
523 |
+
counter.prop('title', ai1wm_locale.backups_count_plural.replace('%d', counter.text()));
|
524 |
+
} else {
|
525 |
+
counter.removeClass('ai1wm-menu-hide');
|
526 |
+
counter.prop('title', ai1wm_locale.backups_count_singular.replace('%d', counter.text()));
|
527 |
+
} // Append text to close button
|
528 |
+
|
529 |
|
530 |
closeButton.append(ai1wm_locale.close_export); // Append close button to action
|
531 |
|
1670 |
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-dots', function (e) {
|
1671 |
e.preventDefault();
|
1672 |
e.stopPropagation();
|
1673 |
+
var menu = $(this).next('div.ai1wm-backup-dots-menu');
|
|
|
1674 |
$('div.ai1wm-backup-dots-menu').not(menu).hide();
|
1675 |
$(menu).toggle();
|
1676 |
});
|
1679 |
}); // Delete file
|
1680 |
|
1681 |
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-delete', function (e) {
|
1682 |
+
var self = $(this);
|
1683 |
+
var counter = $('.ai1wm-menu-count'); // Delete file
|
1684 |
|
1685 |
/* eslint-disable no-alert */
|
1686 |
|
1700 |
}).done(function (data) {
|
1701 |
if (data.errors.length === 0) {
|
1702 |
self.closest('tr').remove();
|
1703 |
+
counter.text(+counter.text() - 1);
|
1704 |
+
|
1705 |
+
if (counter.text() > 1) {
|
1706 |
+
counter.prop('title', ai1wm_locale.backups_count_plural.replace('%d', counter.text()));
|
1707 |
+
} else {
|
1708 |
+
if (+counter.text() === 0) {
|
1709 |
+
counter.addClass('ai1wm-menu-hide');
|
1710 |
+
}
|
1711 |
+
|
1712 |
+
counter.prop('title', ai1wm_locale.backups_count_singular.replace('%d', counter.text()));
|
1713 |
+
}
|
1714 |
|
1715 |
if ($('.ai1wm-backups tbody tr').length === 1) {
|
1716 |
$('.ai1wm-backups').hide();
|
lib/view/assets/javascript/export.min.js
CHANGED
@@ -474,7 +474,18 @@ var Modal = function Modal() {
|
|
474 |
|
475 |
var closeButton = $('<button type="button" class="ai1wm-button-red"></button>').on('click', function () {
|
476 |
self.destroy();
|
477 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
478 |
|
479 |
closeButton.append(ai1wm_locale.close_export); // Append close button to action
|
480 |
|
474 |
|
475 |
var closeButton = $('<button type="button" class="ai1wm-button-red"></button>').on('click', function () {
|
476 |
self.destroy();
|
477 |
+
});
|
478 |
+
var counter = $('.ai1wm-menu-count'); // Update counter text
|
479 |
+
|
480 |
+
counter.text(+counter.text() + 1);
|
481 |
+
|
482 |
+
if (counter.text() > 1) {
|
483 |
+
counter.prop('title', ai1wm_locale.backups_count_plural.replace('%d', counter.text()));
|
484 |
+
} else {
|
485 |
+
counter.removeClass('ai1wm-menu-hide');
|
486 |
+
counter.prop('title', ai1wm_locale.backups_count_singular.replace('%d', counter.text()));
|
487 |
+
} // Append text to close button
|
488 |
+
|
489 |
|
490 |
closeButton.append(ai1wm_locale.close_export); // Append close button to action
|
491 |
|
lib/view/main/admin-head.php
CHANGED
@@ -95,6 +95,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
95 |
z-index: 26;
|
96 |
}
|
97 |
|
|
|
|
|
|
|
|
|
98 |
<?php if ( version_compare( $version, '3.8', '<' ) ) : ?>
|
99 |
.toplevel_page_ai1wm_export > div.wp-menu-image {
|
100 |
background: none !important;
|
95 |
z-index: 26;
|
96 |
}
|
97 |
|
98 |
+
.ai1wm-menu-count.ai1wm-menu-hide {
|
99 |
+
display: none;
|
100 |
+
}
|
101 |
+
|
102 |
<?php if ( version_compare( $version, '3.8', '<' ) ) : ?>
|
103 |
.toplevel_page_ai1wm_export > div.wp-menu-image {
|
104 |
background: none !important;
|
lib/view/main/backups.php
CHANGED
@@ -28,6 +28,4 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
28 |
die( 'Kangaroos cannot jump here' );
|
29 |
}
|
30 |
|
31 |
-
|
32 |
-
printf( ' <span class="ai1wm-menu-count" title="%s">%d</span>', sprintf( _n( 'You have %d backup', 'You have %d backups', $count, AI1WM_PLUGIN_NAME ), $count ), $count );
|
33 |
-
}
|
28 |
die( 'Kangaroos cannot jump here' );
|
29 |
}
|
30 |
|
31 |
+
printf( ' <span class="ai1wm-menu-count %s" title="%s">%d</span>', ( $count === 0 ? 'ai1wm-menu-hide' : null ), sprintf( _n( 'You have %d backup', 'You have %d backups', $count, AI1WM_PLUGIN_NAME ), $count ), $count );
|
|
|
|
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.9
|
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.57 =
|
93 |
**Added**
|
94 |
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 5.9
|
6 |
Requires PHP: 5.2.17
|
7 |
+
Stable tag: 7.58
|
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.58 =
|
93 |
+
**Changed**
|
94 |
+
|
95 |
+
* Hide the backups count if there are no backups
|
96 |
+
|
97 |
= 7.57 =
|
98 |
**Added**
|
99 |
|