Migration, Backup, Staging – WPvivid - Version 0.9.54

Version Description

  • Added support for PHP 8.
  • Fixed some bugs in the plugin code.
  • Optimized the plugin code.
Download this release

Release Info

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

Code changes from version 0.9.53 to 0.9.54

admin/class-wpvivid-admin.php CHANGED
@@ -151,10 +151,10 @@ class WPvivid_Admin {
151
  <table class="widefat" cellpadding="0">
152
  <tbody>
153
  <tr class="alternate">
154
- <td class="row-title">'.__('Read <a href="https://wpvivid.com/troubleshooting-issues-wpvivid-backup-plugin" target="_blank">Troubleshooting page</a> for faster solutions.', 'wpvivid-backuprestore').'</td>
155
  </tr>
156
  <tr>
157
- <td class="row-title">'.__('Adjust <a href="https://wpvivid.com/wpvivid-backup-plugin-advanced-settings.html" target="_blank">Advanced Settings</a> for higher task success rate.', 'wpvivid-backuprestore').'</td>
158
  </tr>
159
  </tbody>
160
  </table>
@@ -165,10 +165,10 @@ class WPvivid_Admin {
165
  <div class="inside">
166
  <table class="widefat" cellpadding="0">
167
  <tbody>
168
- <tr class="alternate"><td class="row-title"><a href="https://wpvivid.com/get-started-settings.html" target="_blank">'.__('WPvivid Backup Settings', 'wpvivid-backuprestore').'</a></td></tr>
169
- <tr><td class="row-title"><a href="https://wpvivid.com/get-started-create-a-manual-backup.html" target="_blank">'.__('Create a Manual Backup', 'wpvivid-backuprestore').'</a></td></tr>
170
- <tr class="alternate"><td class="row-title"><a href="https://wpvivid.com/get-started-restore-site.html" target="_blank">'.__('Restore Your Site from a Backup', 'wpvivid-backuprestore').'</a></td></tr>
171
- <tr><td class="row-title"><a href="https://wpvivid.com/get-started-transfer-site.html" target="_blank">'.__('Migrate WordPress', 'wpvivid-backuprestore').'</a></td></tr>
172
  </tbody>
173
  </table>
174
  </div>
151
  <table class="widefat" cellpadding="0">
152
  <tbody>
153
  <tr class="alternate">
154
+ <td class="row-title">'.__('Read <a href="https://docs.wpvivid.com/troubleshooting-issues-wpvivid-backup-plugin.html" target="_blank">Troubleshooting page</a> for faster solutions.', 'wpvivid-backuprestore').'</td>
155
  </tr>
156
  <tr>
157
+ <td class="row-title">'.__('Adjust <a href="https://docs.wpvivid.com/wpvivid-backup-free-advanced-settings.html" target="_blank">Advanced Settings</a> for higher task success rate.', 'wpvivid-backuprestore').'</td>
158
  </tr>
159
  </tbody>
160
  </table>
165
  <div class="inside">
166
  <table class="widefat" cellpadding="0">
167
  <tbody>
168
+ <tr class="alternate"><td class="row-title"><a href="https://docs.wpvivid.com/wpvivid-backup-free-general-settings.html" target="_blank">'.__('WPvivid Backup Settings', 'wpvivid-backuprestore').'</a></td></tr>
169
+ <tr><td class="row-title"><a href="https://docs.wpvivid.com/get-started-create-manual-backup.html" target="_blank">'.__('Create a Manual Backup', 'wpvivid-backuprestore').'</a></td></tr>
170
+ <tr class="alternate"><td class="row-title"><a href="https://docs.wpvivid.com/get-started-restore-site.html" target="_blank">'.__('Restore Your Site from a Backup', 'wpvivid-backuprestore').'</a></td></tr>
171
+ <tr><td class="row-title"><a href="https://docs.wpvivid.com/get-started-transfer-site.html" target="_blank">'.__('Migrate WordPress', 'wpvivid-backuprestore').'</a></td></tr>
172
  </tbody>
173
  </table>
174
  </div>
admin/partials/wpvivid-backup-restore-page-display.php CHANGED
@@ -405,7 +405,7 @@ function wpvivid_add_backup_type($html, $type_name)
405
  <span class="wpvivid-element-space-right" style="color: #ddd;">'.__('Create a staging site', 'wpvivid-backuprestore').'</span>
406
  </div>
407
  <span class="wpvivid-feature-pro">
408
- <a href="https://wpvivid.com/wpvivid-backup-pro-create-staging-site" style="text-decoration: none;">'.__('Pro feature: learn more', 'wpvivid-backuprestore').'</a>
409
  </span>
410
  </label><br>
411
  <label>
@@ -414,7 +414,7 @@ function wpvivid_add_backup_type($html, $type_name)
414
  <span class="wpvivid-element-space-right" style="color: #ddd;">'.__('Custom', 'wpvivid-backuprestore').'</span>
415
  </div>
416
  <span class="wpvivid-feature-pro">
417
- <a href="https://wpvivid.com/backup-migration-overview?utm_source=client_custom_backup&utm_medium=inner_link&utm_campaign=access" style="text-decoration: none;">'.__('Pro feature: learn more', 'wpvivid-backuprestore').'</a>
418
  </span>
419
  </label><br>';
420
  return $html;
405
  <span class="wpvivid-element-space-right" style="color: #ddd;">'.__('Create a staging site', 'wpvivid-backuprestore').'</span>
406
  </div>
407
  <span class="wpvivid-feature-pro">
408
+ <a href="https://docs.wpvivid.com/wpvivid-backup-pro-create-staging-site.html" style="text-decoration: none;">'.__('Pro feature: learn more', 'wpvivid-backuprestore').'</a>
409
  </span>
410
  </label><br>
411
  <label>
414
  <span class="wpvivid-element-space-right" style="color: #ddd;">'.__('Custom', 'wpvivid-backuprestore').'</span>
415
  </div>
416
  <span class="wpvivid-feature-pro">
417
+ <a href="https://docs.wpvivid.com/wpvivid-backup-pro-overview.html" style="text-decoration: none;">'.__('Pro feature: learn more', 'wpvivid-backuprestore').'</a>
418
  </span>
419
  </label><br>';
420
  return $html;
admin/partials/wpvivid-schedule-page-display.php CHANGED
@@ -21,7 +21,7 @@ function wpvivid_schedule_settings()
21
  </div>
22
  <div style="float: left; height: 32px; line-height: 32px;">
23
  <span class="wpvivid-feature-pro">
24
- <a href="https://wpvivid.com/wpvivid-backup-pro-incremental-backup"><?php _e('Pro feature: learn more', 'wpvivid-backuprestore'); ?></a>
25
  </span>
26
  </div>
27
  <div style="clear: both;"></div>
@@ -33,7 +33,7 @@ function wpvivid_schedule_settings()
33
  </div>
34
  <div style="float: left; height: 32px; line-height: 32px;">
35
  <span class="wpvivid-feature-pro">
36
- <a href="https://wpvivid.com/wpvivid-backup-pro-schedule-overview?utm_source=client_advanced_schedule&utm_medium=inner_link&utm_campaign=access"><?php _e('Pro feature: learn more', 'wpvivid-backuprestore'); ?></a>
37
  </span>
38
  </div>
39
  <div style="clear: both;"></div>
@@ -95,7 +95,7 @@ function wpvivid_schedule_settings()
95
  <?php _e('+ Add another schedule', 'wpvivid-backuprestore'); ?>
96
  </div>
97
  <span class="wpvivid-feature-pro">
98
- <a href="https://wpvivid.com/wpvivid-backup-pro-creating-schedules?utm_source=client_multi_schedule&utm_medium=inner_link&utm_campaign=access"><?php _e('Pro feature: learn more', 'wpvivid-backuprestore'); ?></a>
99
  </span>
100
  </div>
101
  </div>
@@ -143,7 +143,7 @@ function wpvivid_schedule_backup_type($html)
143
  $html.='</div>';
144
  $html.='<div style="float: left; height: 32px; line-height: 32px;">';
145
  $html.='<span class="wpvivid-feature-pro">';
146
- $html.='<a href="https://wpvivid.com/wpvivid-backup-pro-customize-what-to-backup-for-schedule?utm_source=client_schedule_custom_backup&utm_medium=inner_link&utm_campaign=access" style="text-decoration: none;">'.__('Pro feature: learn more', 'wpvivid-backuprestore').'</a>';
147
  $html.='</span>';
148
  $html.='</div>';
149
  $html.='</label><br>';
21
  </div>
22
  <div style="float: left; height: 32px; line-height: 32px;">
23
  <span class="wpvivid-feature-pro">
24
+ <a href="https://docs.wpvivid.com/wpvivid-backup-pro-incremental-backups.html"><?php _e('Pro feature: learn more', 'wpvivid-backuprestore'); ?></a>
25
  </span>
26
  </div>
27
  <div style="clear: both;"></div>
33
  </div>
34
  <div style="float: left; height: 32px; line-height: 32px;">
35
  <span class="wpvivid-feature-pro">
36
+ <a href="https://docs.wpvivid.com/wpvivid-backup-pro-schedule-overview.html"><?php _e('Pro feature: learn more', 'wpvivid-backuprestore'); ?></a>
37
  </span>
38
  </div>
39
  <div style="clear: both;"></div>
95
  <?php _e('+ Add another schedule', 'wpvivid-backuprestore'); ?>
96
  </div>
97
  <span class="wpvivid-feature-pro">
98
+ <a href="https://docs.wpvivid.com/wpvivid-backup-pro-creating-schedules.html"><?php _e('Pro feature: learn more', 'wpvivid-backuprestore'); ?></a>
99
  </span>
100
  </div>
101
  </div>
143
  $html.='</div>';
144
  $html.='<div style="float: left; height: 32px; line-height: 32px;">';
145
  $html.='<span class="wpvivid-feature-pro">';
146
+ $html.='<a href="https://docs.wpvivid.com/wpvivid-backup-pro-customize-what-to-backup-for-schedule.html" style="text-decoration: none;">'.__('Pro feature: learn more', 'wpvivid-backuprestore').'</a>';
147
  $html.='</span>';
148
  $html.='</div>';
149
  $html.='</label><br>';
admin/partials/wpvivid-settings-page-display.php CHANGED
@@ -97,7 +97,7 @@ function wpvivid_general_settings()
97
  }
98
  }
99
  ?>
100
- </select><strong style="margin-right: 10px;"><?php _e('backups retained', 'wpvivid-backuprestore'); ?></strong><a href="https://wpvivid.com/wpvivid-backup-pro-backup-retention" style="text-decoration: none;"><?php _e('Pro feature: Retain more backups', 'wpvivid-backuprestore'); ?></a>
101
  </div>
102
  <div>
103
  <label for="wpvivid_estimate_backup">
97
  }
98
  }
99
  ?>
100
+ </select><strong style="margin-right: 10px;"><?php _e('backups retained', 'wpvivid-backuprestore'); ?></strong><a href="https://docs.wpvivid.com/wpvivid-backup-pro-backup-retention.html" style="text-decoration: none;"><?php _e('Pro feature: Retain more backups', 'wpvivid-backuprestore'); ?></a>
101
  </div>
102
  <div>
103
  <label for="wpvivid_estimate_backup">
includes/class-wpvivid-export-import.php CHANGED
@@ -118,7 +118,7 @@ class WPvivid_Export_Import
118
  <div style="box-sizing: border-box;">
119
  <div class="wpvivid-text-space-bottom"><?php _e('Export posts or pages with images in bulk.', 'wpvivid-backuprestore'); ?>
120
  <span class="wpvivid-feature-pro">
121
- <a href="https://wpvivid.com/export-content" target="_blank" style="text-decoration: none;"><?php _e('Learn more', 'wpvivid-backuprestore'); ?></a>
122
  </span>
123
  </div>
124
  <div class="wpvivid-text-space-bottom"><?php _e('This will contain all of your posts, pages, comments, terms and images (original images, featured images and thumbnails).', 'wpvivid-backuprestore'); ?></div>
118
  <div style="box-sizing: border-box;">
119
  <div class="wpvivid-text-space-bottom"><?php _e('Export posts or pages with images in bulk.', 'wpvivid-backuprestore'); ?>
120
  <span class="wpvivid-feature-pro">
121
+ <a href="https://docs.wpvivid.com/export-content.html" target="_blank" style="text-decoration: none;"><?php _e('Learn more', 'wpvivid-backuprestore'); ?></a>
122
  </span>
123
  </div>
124
  <div class="wpvivid-text-space-bottom"><?php _e('This will contain all of your posts, pages, comments, terms and images (original images, featured images and thumbnails).', 'wpvivid-backuprestore'); ?></div>
includes/class-wpvivid-migrate.php CHANGED
@@ -1125,7 +1125,7 @@ class WPvivid_Migrate
1125
  <span class="wpvivid-element-space-right" style="color: #ddd;">'.__('Choose what to migrate', 'wpvivid-backuprestore').'</span>
1126
  </div>
1127
  <span class="wpvivid-feature-pro">
1128
- <a href="https://wpvivid.com/custom-migration-overview?utm_source=client_migration_custom_backup&utm_medium=inner_link&utm_campaign=access" style="text-decoration: none;">'.__('Pro feature: learn more', 'wpvivid-backuprestore').'</a>
1129
  </span>
1130
  </label><br>';
1131
  return $html;
1125
  <span class="wpvivid-element-space-right" style="color: #ddd;">'.__('Choose what to migrate', 'wpvivid-backuprestore').'</span>
1126
  </div>
1127
  <span class="wpvivid-feature-pro">
1128
+ <a href="https://docs.wpvivid.com/custom-migration-overview.html" style="text-decoration: none;">'.__('Pro feature: learn more', 'wpvivid-backuprestore').'</a>
1129
  </span>
1130
  </label><br>';
1131
  return $html;
includes/class-wpvivid-schedule.php CHANGED
@@ -114,7 +114,7 @@ class WPvivid_Schedule
114
  $html.='</div>';
115
  $html.='<div style="float: left; height: 32px; line-height: 32px;">';
116
  $html.='<span class="wpvivid-feature-pro">';
117
- $html.='<a href="https://wpvivid.com/wpvivid-backup-pro-schedule-overview?utm_source=client_custom_cycles&utm_medium=inner_link&utm_campaign=access" style="text-decoration: none; margin-top: 10px;">'.__('Pro feature: learn more', 'wpvivid-backuprestore').'</a>';
118
  $html.='</span>';
119
  $html.='</div>';
120
  $html.='</label><br>';
114
  $html.='</div>';
115
  $html.='<div style="float: left; height: 32px; line-height: 32px;">';
116
  $html.='<span class="wpvivid-feature-pro">';
117
+ $html.='<a href="https://docs.wpvivid.com/wpvivid-backup-pro-customize-start-time.html" style="text-decoration: none; margin-top: 10px;">'.__('Pro feature: learn more', 'wpvivid-backuprestore').'</a>';
118
  $html.='</span>';
119
  $html.='</div>';
120
  $html.='</label><br>';
includes/class-wpvivid-setting.php CHANGED
@@ -616,55 +616,32 @@ class WPvivid_Setting
616
 
617
  public static function get_sync_data()
618
  {
619
- $wpvivid_info=apply_filters('wpvivid_get_wpvivid_info_addon_mainwp', false);
620
- if(!$wpvivid_info){
621
- $data['need_update']=false;
622
- $data['current_version']='';
623
- }
624
- else{
625
- $data['need_update']=$wpvivid_info['need_update'];
626
- $data['current_version']=$wpvivid_info['current_version'];
627
- }
628
- $check_ret=apply_filters('wpvivid_check_is_pro_mainwp', false);
629
- if(!$check_ret){
630
- $data['is_pro']=false;
631
- $data['is_install']=false;
632
- $data['is_login']=false;
633
- $data['latest_version']='';
634
- }
635
- else{
636
- $data['is_pro']=$check_ret['check_pro'];
637
- $data['is_install']=isset($check_ret['check_install']) ? $check_ret['check_install'] : false;
638
- $data['is_login']=isset($check_ret['check_login']) ? $check_ret['check_login'] : false;
639
- $data['latest_version']=$check_ret['latest_version'];
640
- }
641
- $data['time_zone']=apply_filters('wpvivid_get_time_zone_addon_mainwp', false);
642
  $data['setting']['wpvivid_compress_setting']=self::get_option('wpvivid_compress_setting');
643
  $data['setting']['wpvivid_local_setting']=self::get_option('wpvivid_local_setting');
644
  $data['setting']['wpvivid_common_setting']=self::get_option('wpvivid_common_setting');
645
  $data['setting']['wpvivid_email_setting']=self::get_option('wpvivid_email_setting');
646
  $data['setting']['cron_backup_count']=self::get_option('cron_backup_count');
647
-
648
- $data['setting_addon'] = $data['setting'];
649
- $data['setting_addon']['wpvivid_staging_options']=apply_filters('wpvivid_get_staging_setting_mainwp', array());
650
-
651
  $data['schedule']=self::get_option('wpvivid_schedule_setting');
652
- $data['schedule_addon']=apply_filters('wpvivid_archieve_schedule_add_settings', array());
653
-
654
  $data['remote']['upload']=self::get_option('wpvivid_upload_setting');
655
  $data['remote']['history']=self::get_option('wpvivid_user_history');
656
 
657
- $data['backup_custom_setting']=apply_filters('wpvivid_get_backup_custom_setting_mainwp', array());
658
-
659
- //$data['report_addon'] = apply_filters('wpvivid_archieve_report_addon_mainwp', array());
660
-
661
- $data['menu_capability'] = apply_filters('wpvivid_get_menu_capability_mainwp', array());
662
-
663
- $data['white_label_setting'] = apply_filters('wpvivid_get_white_label_mainwp', array());
664
-
665
- $data['incremental_backup_setting'] = apply_filters('wpvivid_get_incremental_backup_mainwp', array());
666
-
667
- $data['last_backup_report'] = apply_filters('wpvivid_get_backup_report_addon_mainwp', array());
 
 
 
 
 
 
668
  return $data;
669
  }
670
  }
616
 
617
  public static function get_sync_data()
618
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
619
  $data['setting']['wpvivid_compress_setting']=self::get_option('wpvivid_compress_setting');
620
  $data['setting']['wpvivid_local_setting']=self::get_option('wpvivid_local_setting');
621
  $data['setting']['wpvivid_common_setting']=self::get_option('wpvivid_common_setting');
622
  $data['setting']['wpvivid_email_setting']=self::get_option('wpvivid_email_setting');
623
  $data['setting']['cron_backup_count']=self::get_option('cron_backup_count');
 
 
 
 
624
  $data['schedule']=self::get_option('wpvivid_schedule_setting');
 
 
625
  $data['remote']['upload']=self::get_option('wpvivid_upload_setting');
626
  $data['remote']['history']=self::get_option('wpvivid_user_history');
627
 
628
+ $data['setting_addon'] = $data['setting'];
629
+ $data['setting_addon']['wpvivid_staging_options']=array();
630
+ $data['backup_custom_setting']=array();
631
+ $data['menu_capability']=array();
632
+ $data['white_label_setting']=array();
633
+ $data['incremental_backup_setting']=array();
634
+ $data['last_backup_report']=array();
635
+ $data['schedule_addon']=array();
636
+ $data['time_zone']=false;
637
+ $data['is_pro']=false;
638
+ $data['is_install']=false;
639
+ $data['is_login']=false;
640
+ $data['latest_version']='';
641
+ $data['current_version']='';
642
+ $data['dashboard_version'] = '';
643
+ $data['addons_info'] = array();
644
+ $data=apply_filters('wpvivid_get_wpvivid_info_addon_mainwp_ex', $data);
645
  return $data;
646
  }
647
  }
includes/class-wpvivid-zipclass.php CHANGED
@@ -1132,6 +1132,13 @@ $wpvivid_old_time=0;
1132
 
1133
  function wpvivid_function_per_add_callback($p_event, &$p_header)
1134
  {
 
 
 
 
 
 
 
1135
  global $wpvivid_old_time;
1136
  if(time()-$wpvivid_old_time>30)
1137
  {
@@ -1148,34 +1155,45 @@ function wpvivid_function_pre_extract_callback($p_event, &$p_header)
1148
  {
1149
  $plugins = substr(WP_PLUGIN_DIR, strpos(WP_PLUGIN_DIR, 'wp-content/'));
1150
 
1151
- $option = $GLOBALS['wpvivid_extract_option'];
1152
- if (isset($option['file_type'])) {
1153
- if ($option['file_type'] == 'themes') {
1154
- if (isset($option['remove_themes'])) {
1155
- foreach ($option['remove_themes'] as $slug => $themes) {
1156
- if (empty($slug))
1157
- continue;
1158
- if(strpos($p_header['filename'],$plugins.DIRECTORY_SEPARATOR.$slug)!==false)
 
 
1159
  {
1160
- return 0;
 
 
 
 
 
1161
  }
1162
  }
1163
  }
1164
- } else if ($option['file_type'] == 'plugin') {
1165
- if (isset($option['remove_plugin'])) {
1166
- foreach ($option['remove_plugin'] as $slug => $plugin) {
1167
- if (empty($slug))
1168
- continue;
1169
- if(strpos($p_header['filename'],$plugins.'/'.$slug)!==false)
1170
  {
1171
- return 0;
 
 
 
 
 
1172
  }
1173
  }
1174
  }
1175
  }
1176
  }
1177
 
1178
- if(strpos($p_header['filename'],$plugins.DIRECTORY_SEPARATOR.'wpvivid-backuprestore')!==false)
1179
  {
1180
  return 0;
1181
  }
1132
 
1133
  function wpvivid_function_per_add_callback($p_event, &$p_header)
1134
  {
1135
+ if(!file_exists($p_header['filename'])){
1136
+ return 0;
1137
+ }
1138
+ if($p_header['size'] === 0){
1139
+ return 0;
1140
+ }
1141
+
1142
  global $wpvivid_old_time;
1143
  if(time()-$wpvivid_old_time>30)
1144
  {
1155
  {
1156
  $plugins = substr(WP_PLUGIN_DIR, strpos(WP_PLUGIN_DIR, 'wp-content/'));
1157
 
1158
+ if ( isset( $GLOBALS['wpvivid_extract_option'] ) )
1159
+ {
1160
+ $option = $GLOBALS['wpvivid_extract_option'];
1161
+ if (isset($option['file_type']))
1162
+ {
1163
+ if ($option['file_type'] == 'themes')
1164
+ {
1165
+ if (isset($option['remove_themes']))
1166
+ {
1167
+ foreach ($option['remove_themes'] as $slug => $themes)
1168
  {
1169
+ if (empty($slug))
1170
+ continue;
1171
+ if(strpos($p_header['filename'],$plugins.DIRECTORY_SEPARATOR.$slug)!==false)
1172
+ {
1173
+ return 0;
1174
+ }
1175
  }
1176
  }
1177
  }
1178
+ else if ($option['file_type'] == 'plugin')
1179
+ {
1180
+ if (isset($option['remove_plugin']))
1181
+ {
1182
+ foreach ($option['remove_plugin'] as $slug => $plugin)
 
1183
  {
1184
+ if (empty($slug))
1185
+ continue;
1186
+ if(strpos($p_header['filename'],$plugins.'/'.$slug)!==false)
1187
+ {
1188
+ return 0;
1189
+ }
1190
  }
1191
  }
1192
  }
1193
  }
1194
  }
1195
 
1196
+ if(strpos($p_header['filename'],$plugins.'/wpvivid-backuprestore')!==false)
1197
  {
1198
  return 0;
1199
  }
includes/class-wpvivid.php CHANGED
@@ -132,6 +132,7 @@ class WPvivid {
132
  add_filter('wpvivid_get_oldest_backup_ids', array($this, 'get_oldest_backup_ids'), 10, 2);
133
  add_filter('wpvivid_check_backup_completeness', array($this, 'check_backup_completeness'), 10, 2);
134
 
 
135
  //
136
  //Initialisation schedule hook
137
  $this->init_cron();
@@ -1067,6 +1068,39 @@ class WPvivid {
1067
  return $check_res;
1068
  }
1069
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1070
  public function check_backup_file_json($file_name){
1071
  $zip=new WPvivid_ZipClass();
1072
 
132
  add_filter('wpvivid_get_oldest_backup_ids', array($this, 'get_oldest_backup_ids'), 10, 2);
133
  add_filter('wpvivid_check_backup_completeness', array($this, 'check_backup_completeness'), 10, 2);
134
 
135
+ add_filter('wpvivid_get_mainwp_sync_data', array($this, 'get_mainwp_sync_data'), 10);
136
  //
137
  //Initialisation schedule hook
138
  $this->init_cron();
1068
  return $check_res;
1069
  }
1070
 
1071
+ public function get_mainwp_sync_data($information)
1072
+ {
1073
+ $data['setting']['wpvivid_compress_setting']=get_option('wpvivid_compress_setting');
1074
+ $data['setting']['wpvivid_local_setting']=get_option('wpvivid_local_setting');
1075
+ $data['setting']['wpvivid_common_setting']=get_option('wpvivid_common_setting');
1076
+ $data['setting']['wpvivid_email_setting']=get_option('wpvivid_email_setting');
1077
+ $data['setting']['cron_backup_count']=get_option('cron_backup_count');
1078
+ $data['schedule']=get_option('wpvivid_schedule_setting');
1079
+ $data['remote']['upload']=get_option('wpvivid_upload_setting');
1080
+ $data['remote']['history']=get_option('wpvivid_user_history');
1081
+
1082
+ $data['setting_addon'] = $data['setting'];
1083
+ $data['setting_addon']['wpvivid_staging_options']=array();
1084
+ $data['backup_custom_setting']=array();
1085
+ $data['menu_capability']=array();
1086
+ $data['white_label_setting']=array();
1087
+ $data['incremental_backup_setting']=array();
1088
+ $data['last_backup_report']=array();
1089
+ $data['schedule_addon']=array();
1090
+ $data['time_zone']=false;
1091
+ $data['is_pro']=false;
1092
+ $data['is_install']=false;
1093
+ $data['is_login']=false;
1094
+ $data['latest_version']='';
1095
+ $data['current_version']='';
1096
+ $data['dashboard_version'] = '';
1097
+ $data['addons_info'] = array();
1098
+ $data=apply_filters('wpvivid_get_wpvivid_info_addon_mainwp', $data);
1099
+
1100
+ $information['syncWPvividSetting']=$data;
1101
+ return $information;
1102
+ }
1103
+
1104
  public function check_backup_file_json($file_name){
1105
  $zip=new WPvivid_ZipClass();
1106
 
includes/customclass/class-wpvivid-dropbox.php CHANGED
@@ -515,7 +515,7 @@ class WPvivid_Dropbox extends WPvivid_Remote {
515
  </td>
516
  <td class="column-description desc">
517
  <div class="wpvivid-storage-form-desc">
518
- <a href="https://wpvivid.com/wpvivid-backup-pro-dropbox-custom-folder-name?utm_source=client_dropbox&utm_medium=inner_link&utm_campaign=access"><?php _e('Pro feature: Create a directory for storing the backups of the site', 'wpvivid-backuprestore'); ?></a>
519
  </div>
520
  </td>
521
  </tr>
515
  </td>
516
  <td class="column-description desc">
517
  <div class="wpvivid-storage-form-desc">
518
+ <a href="https://docs.wpvivid.com/wpvivid-backup-pro-dropbox-custom-folder-name.html"><?php _e('Pro feature: Create a directory for storing the backups of the site', 'wpvivid-backuprestore'); ?></a>
519
  </div>
520
  </td>
521
  </tr>
includes/customclass/class-wpvivid-ftpclass.php CHANGED
@@ -78,7 +78,7 @@ class WPvivid_FTPClass extends WPvivid_Remote{
78
  </td>
79
  <td class="column-description desc">
80
  <div class="wpvivid-storage-form-desc">
81
- <a href="https://wpvivid.com/wpvivid-backup-pro-ftp-change-ftp-default-port?utm_source=client_ftp_port&utm_medium=inner_link&utm_campaign=access"><?php _e('Pro feature: Change the FTP default port number', 'wpvivid-backuprestore'); ?></a>
82
  </div>
83
  </td>
84
  </tr>
78
  </td>
79
  <td class="column-description desc">
80
  <div class="wpvivid-storage-form-desc">
81
+ <a href="https://docs.wpvivid.com/wpvivid-backup-pro-ftp-change-ftp-default-port.html"><?php _e('Pro feature: Change the FTP default port number', 'wpvivid-backuprestore'); ?></a>
82
  </div>
83
  </td>
84
  </tr>
includes/customclass/class-wpvivid-google-drive.php CHANGED
@@ -365,7 +365,7 @@ class Wpvivid_Google_drive extends WPvivid_Remote
365
  </td>
366
  <td class="column-description desc">
367
  <div class="wpvivid-storage-form-desc">
368
- <a href="https://wpvivid.com/wpvivid-backup-pro-google-drive-custom-folder-name?utm_source=client_google_drive&utm_medium=inner_link&utm_campaign=access"><?php _e('Pro feature: Create a directory for storing the backups of the site', 'wpvivid-backuprestore'); ?></a>
369
  </div>
370
  </td>
371
  </tr>
365
  </td>
366
  <td class="column-description desc">
367
  <div class="wpvivid-storage-form-desc">
368
+ <a href="https://docs.wpvivid.com/wpvivid-backup-pro-google-drive-custom-folder-name.html"><?php _e('Pro feature: Create a directory for storing the backups of the site', 'wpvivid-backuprestore'); ?></a>
369
  </div>
370
  </td>
371
  </tr>
includes/customclass/class-wpvivid-one-drive.php CHANGED
@@ -328,7 +328,7 @@ class WPvivid_one_drive extends WPvivid_Remote
328
  </td>
329
  <td class="column-description desc">
330
  <div class="wpvivid-storage-form-desc">
331
- <a href="https://wpvivid.com/wpvivid-backup-pro-microsoft-onedrive-custom-folder-name?utm_source=client_onedrive&utm_medium=inner_link&utm_campaign=access"><?php _e('Pro feature: Create a directory for storing the backups of the site', 'wpvivid-backuprestore'); ?></a>
332
  </div>
333
  </td>
334
  </tr>
328
  </td>
329
  <td class="column-description desc">
330
  <div class="wpvivid-storage-form-desc">
331
+ <a href="https://docs.wpvivid.com/wpvivid-backup-pro-microsoft-onedrive-custom-folder-name.html"><?php _e('Pro feature: Create a directory for storing the backups of the site', 'wpvivid-backuprestore'); ?></a>
332
  </div>
333
  </td>
334
  </tr>
includes/upload-cleaner/class-wpvivid-uploads-cleaner.php CHANGED
@@ -1027,7 +1027,7 @@ class WPvivid_Uploads_Cleaner
1027
 
1028
  $menu['id']='wpvivid_admin_menu_cleaner';
1029
  $menu['parent']='wpvivid_admin_menu';
1030
- $menu['title']=__('Image Cleaner (Beta)', 'wpvivid-backuprestore');
1031
  $menu['tab']= 'admin.php?page='.apply_filters('wpvivid_white_label_plugin_name', 'wpvivid-cleaner');
1032
  $menu['href']=$admin_url . 'admin.php?page='.apply_filters('wpvivid_white_label_plugin_name', 'wpvivid-cleaner');
1033
  $menu['capability']='administrator';
@@ -1040,7 +1040,7 @@ class WPvivid_Uploads_Cleaner
1040
  {
1041
  $submenu['parent_slug']=apply_filters('wpvivid_white_label_slug', WPVIVID_PLUGIN_SLUG);
1042
  $submenu['page_title']= apply_filters('wpvivid_white_label_display', 'WPvivid Backup');
1043
- $submenu['menu_title']=__('Image Cleaner (Beta)', 'wpvivid-backuprestore');
1044
  $submenu['capability']='administrator';
1045
  $submenu['menu_slug']=strtolower(sprintf('%s-cleaner', apply_filters('wpvivid_white_label_slug', 'wpvivid')));
1046
  $submenu['index']=3;
@@ -1075,7 +1075,7 @@ class WPvivid_Uploads_Cleaner
1075
  <div class="wrap" style="max-width:1720px;">
1076
  <h1>
1077
  <?php
1078
- echo __('WPvivid Image Cleaner (Beta)', 'wpvivid');
1079
  ?>
1080
  </h1>
1081
  <?php
1027
 
1028
  $menu['id']='wpvivid_admin_menu_cleaner';
1029
  $menu['parent']='wpvivid_admin_menu';
1030
+ $menu['title']=__('Image Cleaner', 'wpvivid-backuprestore');
1031
  $menu['tab']= 'admin.php?page='.apply_filters('wpvivid_white_label_plugin_name', 'wpvivid-cleaner');
1032
  $menu['href']=$admin_url . 'admin.php?page='.apply_filters('wpvivid_white_label_plugin_name', 'wpvivid-cleaner');
1033
  $menu['capability']='administrator';
1040
  {
1041
  $submenu['parent_slug']=apply_filters('wpvivid_white_label_slug', WPVIVID_PLUGIN_SLUG);
1042
  $submenu['page_title']= apply_filters('wpvivid_white_label_display', 'WPvivid Backup');
1043
+ $submenu['menu_title']=__('Image Cleaner', 'wpvivid-backuprestore');
1044
  $submenu['capability']='administrator';
1045
  $submenu['menu_slug']=strtolower(sprintf('%s-cleaner', apply_filters('wpvivid_white_label_slug', 'wpvivid')));
1046
  $submenu['index']=3;
1075
  <div class="wrap" style="max-width:1720px;">
1076
  <h1>
1077
  <?php
1078
+ echo __('WPvivid Image Cleaner', 'wpvivid');
1079
  ?>
1080
  </h1>
1081
  <?php
readme.txt CHANGED
@@ -4,11 +4,11 @@ Tags: move, clone, migrate, cleaner, backup, restore, auto backup, cloud backup
4
  Requires at least: 4.5
5
  Tested up to: 5.7.1
6
  Requires PHP: 5.3
7
- Stable tag: 0.9.53
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
11
- Schedule offsite backup, automatic migration. All in one backup & migration plugin.
12
 
13
  == Description ==
14
  WPvivid Backup Plugin offers backup and migration as basic features, and is integrating more and more elegant features, such as unused images cleaner etc.
@@ -187,6 +187,10 @@ Thank you for translating WPvivid Backup Plugin to your languages!
187
  * [Daniel Wilczkowiak](https://profiles.wordpress.org/virtual03/) (German)
188
 
189
  == Changelog ==
 
 
 
 
190
  = 0.9.53 =
191
  - Fixed a SQL injection vulnerability.
192
  - Fixed some bugs in the plugin code and optimized the plugin code.
4
  Requires at least: 4.5
5
  Tested up to: 5.7.1
6
  Requires PHP: 5.3
7
+ Stable tag: 0.9.54
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
11
+ Auto migrate, move, duplicate, back up WP. All-in-one backup & migration plugin. Schedule, offsite backup.
12
 
13
  == Description ==
14
  WPvivid Backup Plugin offers backup and migration as basic features, and is integrating more and more elegant features, such as unused images cleaner etc.
187
  * [Daniel Wilczkowiak](https://profiles.wordpress.org/virtual03/) (German)
188
 
189
  == Changelog ==
190
+ = 0.9.54 =
191
+ - Added support for PHP 8.
192
+ - Fixed some bugs in the plugin code.
193
+ - Optimized the plugin code.
194
  = 0.9.53 =
195
  - Fixed a SQL injection vulnerability.
196
  - Fixed some bugs in the plugin code and optimized the plugin code.
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.53
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.53' );
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.54
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.54' );
25
  //
26
  define('WPVIVID_RESTORE_INIT','init');
27
  define('WPVIVID_RESTORE_READY','ready');