Plugin Directory

Changeset 3264775


Ignore:
Timestamp:
04/01/2025 12:04:29 AM (11 months ago)
Author:
wpvivid
Message:

Update for backup free 0.9.114 trunk

Location:
wpvivid-backuprestore/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • wpvivid-backuprestore/trunk/admin/class-wpvivid-admin.php

    r3225201 r3264775  
    9797
    9898        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);
    99100
    100101        $this->plugin_name = $plugin_name;
     
    9991000
    10001001            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'));
    10011013        }
    10021014    }
     
    16721684                        <p><strong><?php esc_html_e('Domains', 'wpvivid-backuprestore'); ?></strong></p>
    16731685                        <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>
    16751686                        <p><strong><?php esc_html_e('Mulitsite Support', 'wpvivid-backuprestore'); ?></strong></p>
    16761687                        <p><strong><?php esc_html_e('Staging Pro', 'wpvivid-backuprestore'); ?></strong></p>
     
    16851696                        <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p>
    16861697                        <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>
    16881698                    </td>
    16891699                    <td style="text-align:center;">
     
    16941704                        <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p>
    16951705                        <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>
    16971706                    </td>
    16981707                    <td style="text-align:center;">
     
    17031712                        <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p>
    17041713                        <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>
    17061714                    </td>
    17071715                    <td style="text-align:center;">
    17081716                        <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>
    17101717                        <p><span style="height: 12px;width: 12px;background-color: #81d742;border-radius: 50%;display: inline-block;"></span></p>
    17111718                        <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  
    913913                        jQuery('#wpvivid_restore_zero_date_warning_info').hide();
    914914                    }
    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                         else
    922                         {
    923                             jQuery('#wpvivid_restore_wp_version_warning_info').hide();
    924                         }
    925                     }
    926                     else
    927                     {
    928                         jQuery('#wpvivid_restore_wp_version_warning_info').hide();
    929                     }
    930915                    if(jsonarray.result === 'success')
    931916                    {
     
    11941179        <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;">
    11951180            <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>
    11991181        </div>
    12001182        <div id="wpvivid_restore_box">
     
    12871269                                jQuery('#wpvivid_restore_zero_date_warning_info').hide();
    12881270                            }
    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                           
    13051272                            wpvivid_download_display_restore_msg(restore_type, restore_method);
    13061273                        }
  • wpvivid-backuprestore/trunk/includes/class-wpvivid.php

    r3242904 r3264775  
    36963696            }
    36973697
    3698             $wp_version_check=$backup_item->check_wp_version();
    3699             if($wp_version_check)
    3700             {
    3701                 $ret['wp_version_check']=true;
    3702             }
    3703             else
    3704             {
    3705                 $ret['wp_version_check']=false;
    3706             }
    3707 
    37083698            echo wp_json_encode($ret);
    37093699        }
     
    40164006                    $ret['has_zero_date']=1;
    40174007                }
    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             else
    4026             {
    4027                 $ret['wp_version_check']=false;
    40284008            }
    40294009
  • wpvivid-backuprestore/trunk/includes/new_backup/class-wpvivid-restore2.php

    r3225201 r3264775  
    7575        $this->write_litespeed_rule();
    7676        $this->deactivate_plugins();
    77 
     77        $this->deactivate_theme();
    7878        if(!file_exists(WPMU_PLUGIN_DIR.'/a-wpvivid-restore-mu-plugin-check.php'))
    7979        {
     
    8484        echo wp_json_encode($ret);
    8585        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        }
    86115    }
    87116
     
    13481377        {
    13491378            $this->active_plugins($plugins);
     1379            $this->check_active_theme();
    13501380        }
    13511381
  • wpvivid-backuprestore/trunk/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger.php

    r3210154 r3264775  
    255255            }
    256256            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', '>='))
    258259            {
    259260                switch (true) {
  • wpvivid-backuprestore/trunk/wpvivid-backuprestore.php

    r3242904 r3264775  
    88 * Plugin Name:       WPvivid Backup Plugin
    99 * 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.113
     10 * Version:           0.9.114
    1111 * Author:            WPvivid Backup & Migration
    1212 * Author URI:        https://wpvivid.com
     
    2222}
    2323
    24 define( 'WPVIVID_PLUGIN_VERSION', '0.9.113' );
     24define( 'WPVIVID_PLUGIN_VERSION', '0.9.114' );
    2525//
    2626define('WPVIVID_RESTORE_INIT','init');
Note: See TracChangeset for help on using the changeset viewer.