Migration, Backup, Staging – WPvivid - Version 0.9.50

Version Description

  • Fixed some bugs in the plugin code.
  • Optimized the plugin code.
  • Successfully tested with WordPress 5.6.1.
Download this release

Release Info

Developer wpvivid
Plugin Icon 128x128 Migration, Backup, Staging – WPvivid
Version 0.9.50
Comparing to
See all releases

Code changes from version 0.9.49 to 0.9.50

includes/class-wpvivid-mail-report.php CHANGED
@@ -39,9 +39,26 @@ class WPvivid_mail_report
39
 
40
  $task_log=$task['options']['log_file_name'];
41
 
42
- $wpvivid_log=new WPvivid_Log();
43
- $log_file_name= $wpvivid_log->GetSaveLogFolder().$task_log.'_log.txt';
44
- $attachments[] = $log_file_name;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  foreach ($option['send_to'] as $send_to)
46
  {
47
  if(wp_mail( $send_to, $subject, $body,$headers,$attachments)===false)
39
 
40
  $task_log=$task['options']['log_file_name'];
41
 
42
+ if(isset($option['email_attach_log'])){
43
+ if($option['email_attach_log'] == '1'){
44
+ $attach_log = true;
45
+ }
46
+ else{
47
+ $attach_log = false;
48
+ }
49
+ }
50
+ else{
51
+ $attach_log = true;
52
+ }
53
+ if($attach_log){
54
+ $wpvivid_log=new WPvivid_Log();
55
+ $log_file_name= $wpvivid_log->GetSaveLogFolder().$task_log.'_log.txt';
56
+ $attachments[] = $log_file_name;
57
+ }
58
+ else{
59
+ $attachments = array();
60
+ }
61
+
62
  foreach ($option['send_to'] as $send_to)
63
  {
64
  if(wp_mail( $send_to, $subject, $body,$headers,$attachments)===false)
includes/class-wpvivid.php CHANGED
@@ -1168,6 +1168,14 @@ class WPvivid {
1168
  {
1169
  $this->wpvivid_log->WriteLog('Backup succeeded.','notice');
1170
 
 
 
 
 
 
 
 
 
1171
  $remote_options=WPvivid_taskmanager::get_task_options($task_id,'remote_options');
1172
  if($remote_options===false)
1173
  {
@@ -3794,6 +3802,8 @@ class WPvivid {
3794
  $maintenance_string.='$version_check=version_compare($wp_version,4.6,\'>\' );';
3795
  $maintenance_string.='if($version_check)';
3796
  $maintenance_string.='{';
 
 
3797
  $maintenance_string.='function enable_maintenance_mode_filter($enable_checks,$upgrading)';
3798
  $maintenance_string.='{';
3799
  $maintenance_string.='if(is_admin()&&isset($_POST[\'wpvivid_restore\']))';
@@ -3802,6 +3812,7 @@ class WPvivid {
3802
  $maintenance_string.='}';
3803
  $maintenance_string.='return $enable_checks;';
3804
  $maintenance_string.='}';
 
3805
  $maintenance_string.='add_filter( \'enable_maintenance_mode\',\'enable_maintenance_mode_filter\',10, 2 );';
3806
  $maintenance_string.='}';
3807
  $maintenance_string.='else';
1168
  {
1169
  $this->wpvivid_log->WriteLog('Backup succeeded.','notice');
1170
 
1171
+ $check_res = apply_filters('wpvivid_check_backup_completeness', true, $task_id);
1172
+ if(!$check_res){
1173
+ $task=WPvivid_taskmanager::get_task($task_id);
1174
+ $task['status']['error'] = 'We have detected that this backup is either corrupted or incomplete. Please make sure your server disk space is sufficient then create a new backup. In order to successfully back up/restore a website, the amount of free server disk space needs to be at least twice the size of the website';
1175
+ do_action('wpvivid_handle_backup_failed',$task, false);
1176
+ return false;
1177
+ }
1178
+
1179
  $remote_options=WPvivid_taskmanager::get_task_options($task_id,'remote_options');
1180
  if($remote_options===false)
1181
  {
3802
  $maintenance_string.='$version_check=version_compare($wp_version,4.6,\'>\' );';
3803
  $maintenance_string.='if($version_check)';
3804
  $maintenance_string.='{';
3805
+ $maintenance_string.='if(!function_exists(\'enable_maintenance_mode_filter\'))';
3806
+ $maintenance_string.='{';
3807
  $maintenance_string.='function enable_maintenance_mode_filter($enable_checks,$upgrading)';
3808
  $maintenance_string.='{';
3809
  $maintenance_string.='if(is_admin()&&isset($_POST[\'wpvivid_restore\']))';
3812
  $maintenance_string.='}';
3813
  $maintenance_string.='return $enable_checks;';
3814
  $maintenance_string.='}';
3815
+ $maintenance_string.='}';
3816
  $maintenance_string.='add_filter( \'enable_maintenance_mode\',\'enable_maintenance_mode_filter\',10, 2 );';
3817
  $maintenance_string.='}';
3818
  $maintenance_string.='else';
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: wpvivid
3
  Tags: move, clone, migrate, cleaner, backup, restore, auto backup, cloud backup
4
  Requires at least: 4.5
5
- Tested up to: 5.6
6
  Requires PHP: 5.3
7
- Stable tag: 0.9.49
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -186,6 +186,10 @@ Thank you for translating WPvivid Backup Plugin to your languages!
186
  * [Daniel Wilczkowiak](https://profiles.wordpress.org/virtual03/) (German)
187
 
188
  == Changelog ==
 
 
 
 
189
  = 0.9.49 =
190
  - Fixed: A 404 error would returned when sending a request to wp-cron.php in some multilingual websites.
191
  - Fixed: Could not turn pages in the backup list.
2
  Contributors: wpvivid
3
  Tags: move, clone, migrate, cleaner, backup, restore, auto backup, cloud backup
4
  Requires at least: 4.5
5
+ Tested up to: 5.6.1
6
  Requires PHP: 5.3
7
+ Stable tag: 0.9.50
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
186
  * [Daniel Wilczkowiak](https://profiles.wordpress.org/virtual03/) (German)
187
 
188
  == Changelog ==
189
+ = 0.9.50 =
190
+ - Fixed some bugs in the plugin code.
191
+ - Optimized the plugin code.
192
+ - Successfully tested with WordPress 5.6.1.
193
  = 0.9.49 =
194
  - Fixed: A 404 error would returned when sending a request to wp-cron.php in some multilingual websites.
195
  - Fixed: Could not turn pages in the backup list.
wpvivid-backuprestore.php CHANGED
@@ -7,7 +7,7 @@
7
  * @wordpress-plugin
8
  * Plugin Name: WPvivid Backup Plugin
9
  * Description: Clone or copy WP sites then move or migrate them to new host (new domain), schedule backups, transfer backups to leading remote storage. All in one.
10
- * Version: 0.9.49
11
  * Author: WPvivid Team
12
  * Author URI: https://wpvivid.com
13
  * License: GPL-3.0+
@@ -21,7 +21,7 @@ if ( ! defined( 'WPINC' ) ) {
21
  die;
22
  }
23
 
24
- define( 'WPVIVID_PLUGIN_VERSION', '0.9.49' );
25
  //
26
  define('WPVIVID_RESTORE_INIT','init');
27
  define('WPVIVID_RESTORE_READY','ready');
7
  * @wordpress-plugin
8
  * Plugin Name: WPvivid Backup Plugin
9
  * Description: Clone or copy WP sites then move or migrate them to new host (new domain), schedule backups, transfer backups to leading remote storage. All in one.
10
+ * Version: 0.9.50
11
  * Author: WPvivid Team
12
  * Author URI: https://wpvivid.com
13
  * License: GPL-3.0+
21
  die;
22
  }
23
 
24
+ define( 'WPVIVID_PLUGIN_VERSION', '0.9.50' );
25
  //
26
  define('WPVIVID_RESTORE_INIT','init');
27
  define('WPVIVID_RESTORE_READY','ready');