Version Description
*Release Date - May 4, 2018
- UPDATE: Updates to get_open_items_by_group_last_day to include items that are queued and open
- UPDATE: Updates to fire WPBackItUp Safe Log Push Event
Download this release
Release Info
Developer | cssimmon |
Plugin | Backup and Restore WordPress – WPBackItUp Backup Plugin |
Version | 1.15.7 |
Comparing to | |
See all releases |
Code changes from version 1.15.6 to 1.15.7
- lib/includes/class-database.php +7 -3
- lib/includes/class-logger.php +4 -4
- lib/includes/class-wpbackitup-admin.php +7 -0
- readme.txt +7 -1
- views/backup.php +1 -0
- wp-backitup.php +2 -2
lib/includes/class-database.php
CHANGED
@@ -671,7 +671,8 @@ class WPBackItUp_DataAccess {
|
|
671 |
}
|
672 |
|
673 |
/**
|
674 |
-
* Get open items(OPEN,QUEUED) for group
|
|
|
675 |
*
|
676 |
* @param string|array $groups list of groups
|
677 |
*
|
@@ -683,11 +684,14 @@ class WPBackItUp_DataAccess {
|
|
683 |
|
684 |
//Group List
|
685 |
$group_delimited_list = self::get_delimited_list($groups);
|
|
|
686 |
|
687 |
$sql_select = "SELECT * FROM $wpdb->wpbackitup_job_item
|
688 |
WHERE
|
689 |
-
group_id IN ( {$group_delimited_list}) &&
|
690 |
-
create_date >= NOW() - INTERVAL 1 DAY
|
|
|
|
|
691 |
ORDER BY group_id desc,item_id desc
|
692 |
";
|
693 |
|
671 |
}
|
672 |
|
673 |
/**
|
674 |
+
* Get open items(OPEN,QUEUED) for group
|
675 |
+
* Also get other items for group list since yesterday
|
676 |
*
|
677 |
* @param string|array $groups list of groups
|
678 |
*
|
684 |
|
685 |
//Group List
|
686 |
$group_delimited_list = self::get_delimited_list($groups);
|
687 |
+
$status_delimited_list = self::get_delimited_list(array(WPBackItUp_Job_Item::OPEN, WPBackItUp_Job_Item::QUEUED));
|
688 |
|
689 |
$sql_select = "SELECT * FROM $wpdb->wpbackitup_job_item
|
690 |
WHERE
|
691 |
+
(group_id IN ( {$group_delimited_list}) &&
|
692 |
+
create_date >= NOW() - INTERVAL 1 DAY) ||
|
693 |
+
(group_id IN ( {$group_delimited_list}) &&
|
694 |
+
item_status IN ( {$status_delimited_list}))
|
695 |
ORDER BY group_id desc,item_id desc
|
696 |
";
|
697 |
|
lib/includes/class-logger.php
CHANGED
@@ -66,10 +66,10 @@ class WPBackItUp_Logger {
|
|
66 |
/**
|
67 |
* Write error messages to the log
|
68 |
*
|
69 |
-
* @param $log_name Log Name
|
70 |
-
* @param $function Name of calling function(__METHOD__)
|
71 |
-
* @param $message Log Message (Array or object)
|
72 |
-
* @param
|
73 |
*/
|
74 |
public static function log_error($log_name, $function,$message,$additional_message=null) {
|
75 |
|
66 |
/**
|
67 |
* Write error messages to the log
|
68 |
*
|
69 |
+
* @param string $log_name Log Name
|
70 |
+
* @param string $function Name of calling function(__METHOD__)
|
71 |
+
* @param string $message Log Message (Array or object)
|
72 |
+
* @param string $additional_message (string)
|
73 |
*/
|
74 |
public static function log_error($log_name, $function,$message,$additional_message=null) {
|
75 |
|
lib/includes/class-wpbackitup-admin.php
CHANGED
@@ -1598,8 +1598,15 @@ class WPBackitup_Admin {
|
|
1598 |
delete_transient($key);
|
1599 |
}
|
1600 |
|
|
|
|
|
|
|
1601 |
wp_safe_redirect($url . '&s=1');
|
1602 |
} else{
|
|
|
|
|
|
|
|
|
1603 |
wp_safe_redirect($url . '&s=2');
|
1604 |
}
|
1605 |
|
1598 |
delete_transient($key);
|
1599 |
}
|
1600 |
|
1601 |
+
//send safe logs
|
1602 |
+
do_action('wpbackitup-safe_upload_logs_files');
|
1603 |
+
|
1604 |
wp_safe_redirect($url . '&s=1');
|
1605 |
} else{
|
1606 |
+
|
1607 |
+
//send safe logs
|
1608 |
+
do_action('wpbackitup-safe_upload_logs_files');
|
1609 |
+
|
1610 |
wp_safe_redirect($url . '&s=2');
|
1611 |
}
|
1612 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: backup, backups, back up, backup plugin, database backup, multisite backup
|
|
4 |
Requires at least: 3.8.0
|
5 |
Requires PHP: 5.2.4
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.15.
|
8 |
Author URI: https://www.wpbackitup.com
|
9 |
Donate link: https://www.wpbackitup.com
|
10 |
License: GPLv2 or later
|
@@ -214,6 +214,12 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
|
|
214 |
|
215 |
|
216 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
= 1.15.6 =
|
218 |
*Release Date - March 1, 2018
|
219 |
|
4 |
Requires at least: 3.8.0
|
5 |
Requires PHP: 5.2.4
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.15.6
|
8 |
Author URI: https://www.wpbackitup.com
|
9 |
Donate link: https://www.wpbackitup.com
|
10 |
License: GPLv2 or later
|
214 |
|
215 |
|
216 |
== Changelog ==
|
217 |
+
= 1.15.7 =
|
218 |
+
*Release Date - May 4, 2018
|
219 |
+
|
220 |
+
* UPDATE: Updates to get_open_items_by_group_last_day to include items that are queued and open
|
221 |
+
* UPDATE: Updates to fire WPBackItUp Safe Log Push Event
|
222 |
+
|
223 |
= 1.15.6 =
|
224 |
*Release Date - March 1, 2018
|
225 |
|
views/backup.php
CHANGED
@@ -616,4 +616,5 @@ if (!$backup_folder_exists) {
|
|
616 |
|
617 |
<?php endif ?>
|
618 |
</td>
|
|
|
619 |
</script>
|
616 |
|
617 |
<?php endif ?>
|
618 |
</td>
|
619 |
+
<td v-else> </td>
|
620 |
</script>
|
wp-backitup.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
|
7 |
* Author: WPBackItUp
|
8 |
* Author URI: https://www.wpbackitup.com
|
9 |
-
* Version: 1.15.
|
10 |
* Text Domain: wp-backitup
|
11 |
*
|
12 |
* License: GPL3
|
@@ -33,7 +33,7 @@ define( 'WPBACKITUP__CLASSNAMESPACE', 'WPBackItUp' );
|
|
33 |
|
34 |
define( 'WPBACKITUP__MAJOR_VERSION', 1);
|
35 |
define( 'WPBACKITUP__MINOR_VERSION', 15);
|
36 |
-
define( 'WPBACKITUP__MAINTENANCE_VERSION',
|
37 |
define( 'WPBACKITUP__BUILD_VERSION', 0); //Used for hotfix releases
|
38 |
|
39 |
define( 'WPBACKITUP__VERSION',sprintf("%d.%d.%d.%d", WPBACKITUP__MAJOR_VERSION, WPBACKITUP__MINOR_VERSION,WPBACKITUP__MAINTENANCE_VERSION,WPBACKITUP__BUILD_VERSION));
|
6 |
* Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
|
7 |
* Author: WPBackItUp
|
8 |
* Author URI: https://www.wpbackitup.com
|
9 |
+
* Version: 1.15.7
|
10 |
* Text Domain: wp-backitup
|
11 |
*
|
12 |
* License: GPL3
|
33 |
|
34 |
define( 'WPBACKITUP__MAJOR_VERSION', 1);
|
35 |
define( 'WPBACKITUP__MINOR_VERSION', 15);
|
36 |
+
define( 'WPBACKITUP__MAINTENANCE_VERSION', 7); //Dont forget to update version in header on WP release
|
37 |
define( 'WPBACKITUP__BUILD_VERSION', 0); //Used for hotfix releases
|
38 |
|
39 |
define( 'WPBACKITUP__VERSION',sprintf("%d.%d.%d.%d", WPBACKITUP__MAJOR_VERSION, WPBACKITUP__MINOR_VERSION,WPBACKITUP__MAINTENANCE_VERSION,WPBACKITUP__BUILD_VERSION));
|