Changeset 3264775
- Timestamp:
- 04/01/2025 12:04:29 AM (11 months ago)
- Location:
- wpvivid-backuprestore/trunk
- Files:
-
- 7 edited
-
admin/class-wpvivid-admin.php (modified) (6 diffs)
-
admin/partials/wpvivid-backup-restore-page-display.php (modified) (3 diffs)
-
includes/class-wpvivid.php (modified) (2 diffs)
-
includes/new_backup/class-wpvivid-restore2.php (modified) (3 diffs)
-
readme.txt (modified) (previous)
-
vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger.php (modified) (1 diff)
-
wpvivid-backuprestore.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpvivid-backuprestore/trunk/admin/class-wpvivid-admin.php
r3225201 r3264775 97 97 98 98 add_filter('wpvivid_current_user_show_toolbar', array($this, 'current_user_show_toolbar'), 10, 2); 99 add_action('in_admin_header',array( $this,'hide_notices'), 98); 99 100 100 101 $this->plugin_name = $plugin_name; … … 999 1000 1000 1001 update_option('wpvivid_check_htaccess_rule_free', true, 'no'); 1002 } 1003 } 1004 1005 public function hide_notices() 1006 { 1007 $this->screen_ids=apply_filters('wpvivid_get_screen_ids',$this->screen_ids); 1008 if(in_array(get_current_screen()->id,$this->screen_ids)) 1009 { 1010 remove_all_actions('admin_notices'); 1011 add_action('admin_notices', array($this, 'check_wpvivid_pro_version')); 1012 add_action('admin_notices', array($this, 'check_wpvivid_free_htaccess_rule')); 1001 1013 } 1002 1014 } … … 1672 1684 <p><strong><?php esc_html_e('Domains', 'wpvivid-backuprestore'); ?></strong></p> 1673 1685 <p><strong><?php esc_html_e('Backup & Migration Pro', 'wpvivid-backuprestore'); ?></strong></p> 1674 <p><strong><?php esc_html_e('Image Optimization Pro (Unlimited/domain)', 'wpvivid-backuprestore'); ?></strong></p>1675 1686 <p><strong><?php esc_html_e('Mulitsite Support', 'wpvivid-backuprestore'); ?></strong></p> 1676 1687 <p><strong><?php esc_html_e('Staging Pro', 'wpvivid-backuprestore'); ?></strong></p> … … 1685 1696 <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p> 1686 1697 <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p> 1687 <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p>1688 1698 </td> 1689 1699 <td style="text-align:center;"> … … 1694 1704 <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p> 1695 1705 <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p> 1696 <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p>1697 1706 </td> 1698 1707 <td style="text-align:center;"> … … 1703 1712 <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p> 1704 1713 <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p> 1705 <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p>1706 1714 </td> 1707 1715 <td style="text-align:center;"> 1708 1716 <p><span style="color: #81d742;"><?php esc_html_e('Unlimited domains', 'wpvivid-backuprestore'); ?></span></p> 1709 <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p>1710 1717 <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p> 1711 1718 <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p> -
wpvivid-backuprestore/trunk/admin/partials/wpvivid-backup-restore-page-display.php
r3225201 r3264775 913 913 jQuery('#wpvivid_restore_zero_date_warning_info').hide(); 914 914 } 915 if(typeof jsonarray.wp_version_check !== 'undefined')916 {917 if(!jsonarray.wp_version_check)918 {919 jQuery('#wpvivid_restore_wp_version_warning_info').show();920 }921 else922 {923 jQuery('#wpvivid_restore_wp_version_warning_info').hide();924 }925 }926 else927 {928 jQuery('#wpvivid_restore_wp_version_warning_info').hide();929 }930 915 if(jsonarray.result === 'success') 931 916 { … … 1194 1179 <div id="wpvivid_restore_zero_date_warning_info" class="wpvivid-one-coloum" style="border:2px solid orange; margin-bottom:1em; border-radius:0.3em; display: none;"> 1195 1180 <span style="color:orange;">Warning: We have detected that the backup contains zero dates '0000-00-00', while NO_ZERO_DATE which forbids zero dates is enabled on the current server, which may cause a restore failure. It is recommended to temporarily disable NO_ZERO_DATE on the server.</span> 1196 </div>1197 <div id="wpvivid_restore_wp_version_warning_info" class="wpvivid-one-coloum" style="border:2px solid orange; margin-bottom:1em; border-radius:0.3em; display: none;">1198 <span style="color:orange;">We have detected that the WordPress version in the backup is too old and may not be compatible with the current site environment. It is <strong>recommended</strong> to exclude WordPress core from the restoration to avoid any compatibility issues. Some PHP functions called by old WordPress may have been deprecated in new versions. So the restoration may be successful, but the site may not run properly after that.</span>1199 1181 </div> 1200 1182 <div id="wpvivid_restore_box"> … … 1287 1269 jQuery('#wpvivid_restore_zero_date_warning_info').hide(); 1288 1270 } 1289 1290 if(typeof jsonarray.wp_version_check !== 'undefined') 1291 { 1292 if(!jsonarray.wp_version_check) 1293 { 1294 jQuery('#wpvivid_restore_wp_version_warning_info').show(); 1295 } 1296 else 1297 { 1298 jQuery('#wpvivid_restore_wp_version_warning_info').hide(); 1299 } 1300 } 1301 else 1302 { 1303 jQuery('#wpvivid_restore_wp_version_warning_info').hide(); 1304 } 1271 1305 1272 wpvivid_download_display_restore_msg(restore_type, restore_method); 1306 1273 } -
wpvivid-backuprestore/trunk/includes/class-wpvivid.php
r3242904 r3264775 3696 3696 } 3697 3697 3698 $wp_version_check=$backup_item->check_wp_version();3699 if($wp_version_check)3700 {3701 $ret['wp_version_check']=true;3702 }3703 else3704 {3705 $ret['wp_version_check']=false;3706 }3707 3708 3698 echo wp_json_encode($ret); 3709 3699 } … … 4016 4006 $ret['has_zero_date']=1; 4017 4007 } 4018 }4019 4020 $wp_version_check=$backup_item->check_wp_version();4021 if($wp_version_check)4022 {4023 $ret['wp_version_check']=true;4024 }4025 else4026 {4027 $ret['wp_version_check']=false;4028 4008 } 4029 4009 -
wpvivid-backuprestore/trunk/includes/new_backup/class-wpvivid-restore2.php
r3225201 r3264775 75 75 $this->write_litespeed_rule(); 76 76 $this->deactivate_plugins(); 77 77 $this->deactivate_theme(); 78 78 if(!file_exists(WPMU_PLUGIN_DIR.'/a-wpvivid-restore-mu-plugin-check.php')) 79 79 { … … 84 84 echo wp_json_encode($ret); 85 85 die(); 86 } 87 88 public function deactivate_theme() 89 { 90 $current_template = get_option( 'template', '' ); 91 update_option( 'wpvivid_save_theme_template', $current_template, 'no' ); 92 $current_stylesheet = get_option( 'stylesheet', '' ); 93 update_option( 'wpvivid_save_theme_stylesheet', $current_stylesheet, 'no' ); 94 $current_theme = get_option( 'current_theme', '' ); 95 update_option( 'wpvivid_save_current_theme', $current_theme, 'no' ); 96 97 update_option('template', ''); 98 update_option('stylesheet', ''); 99 update_option('current_theme', ''); 100 } 101 102 public function check_active_theme() 103 { 104 $save_template = get_option( 'wpvivid_save_theme_template', '' ); 105 $save_stylesheet = get_option( 'wpvivid_save_theme_stylesheet', '' ); 106 $save_theme = get_option( 'wpvivid_save_current_theme', '' ); 107 108 $themes_path = get_theme_root(); 109 if(file_exists($themes_path . DIRECTORY_SEPARATOR . $save_stylesheet)) 110 { 111 update_option('template', $save_template); 112 update_option('stylesheet', $save_stylesheet); 113 update_option('current_theme', $save_theme); 114 } 86 115 } 87 116 … … 1348 1377 { 1349 1378 $this->active_plugins($plugins); 1379 $this->check_active_theme(); 1350 1380 } 1351 1381 -
wpvivid-backuprestore/trunk/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger.php
r3210154 r3264775 255 255 } 256 256 if((substr($php_version, 0, 3) === '8.2') && version_compare($php_version, '8.2.26', '>=') || 257 (substr($php_version, 0, 3) === '8.3') && version_compare($php_version, '8.3.14', '>=')) 257 (substr($php_version, 0, 3) === '8.3') && version_compare($php_version, '8.3.14', '>=') || 258 (substr($php_version, 0, 3) === '8.4') && version_compare($php_version, '8.4.0', '>=')) 258 259 { 259 260 switch (true) { -
wpvivid-backuprestore/trunk/wpvivid-backuprestore.php
r3242904 r3264775 8 8 * Plugin Name: WPvivid Backup Plugin 9 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.11 310 * Version: 0.9.114 11 11 * Author: WPvivid Backup & Migration 12 12 * Author URI: https://wpvivid.com … … 22 22 } 23 23 24 define( 'WPVIVID_PLUGIN_VERSION', '0.9.11 3' );24 define( 'WPVIVID_PLUGIN_VERSION', '0.9.114' ); 25 25 // 26 26 define('WPVIVID_RESTORE_INIT','init');
Note: See TracChangeset
for help on using the changeset viewer.