PluginProbe
WP Database Backup – Unlimited Database & Files Backup by Backup for WP / 6.11
WP Database Backup – Unlimited Database & Files Backup by Backup for WP v6.11
7.13 7.12 trunk 1.1 2.1.1 5.9 6.0 6.1 6.10 6.11 6.12 6.12.1 6.2 6.3 6.4 6.5 6.5.1 6.6 6.7 6.8 6.9 7.0 7.0.1 7.1 7.10 All 34 releases
← All changes | wp-database-backup.php +26 -23 6.36.11 View file →
@@ -1,10 +1,10 @@
1 1 <?php // phpcs:ignore
2 2 /**
3 - * Plugin Name: Backup For WP
3 + * Plugin Name: Backup For WP
4 4 * Plugin URI:https://wordpress.org/plugins/wp-database-backup
5 - * Description: This plugin helps you to create/restore Unlimited Wordpress Database & Files backup.
6 - * Version: 6.3
5 + * Description: This plugin helps you to create/restore Unlimited WordPress Database & Files backup.
6 + * Version: 6.11
7 7 * Author: Backup for WP
8 8 * Author URI: https://backupforwp.com/
9 9 * Text Domain: wpdbbkp
10 10 * Domain Path: /lang
@@ -46,9 +46,9 @@
46 46 * Plugin version
47 47 *
48 48 * @var string
49 49 */
50 - public $version = '6.3';
50 + public $version = '6.11';
51 51
52 52 /**
53 53 * Plugin instance
54 54 *
@@ -98,14 +98,14 @@
98 98 define( 'WPDB_PATH', plugin_dir_path( __FILE__ ) );
99 99 define( 'WPDB_ROOTPATH', str_replace( '\\', '/', ABSPATH ) );
100 100 define( 'WPDB_VERSION', $this->version );
101 101 define( 'WPDBPLUGIN_VERSION', WPDB_VERSION );
102 - $wpdbbkp_backups_dir=get_option('wp_db_backup_backups_dir');
103 - if(!empty($wp_all_backup_backups_dir)){
104 - define( 'WPDB_BACKUPS_DIR',get_option('wp_db_backup_backups_dir'));
105 - }else{
106 - define( 'WPDB_BACKUPS_DIR','db-backup');
107 - }
102 + $wp_all_backup_backups_dir=get_option('wp_db_backup_backups_dir');
103 + if(!empty($wp_all_backup_backups_dir)){
104 + define( 'WPDB_BACKUPS_DIR',$wp_all_backup_backups_dir);
105 + }else{
106 + define( 'WPDB_BACKUPS_DIR','db-backup');
107 + }
108 108 }
109 109
110 110 /**
111 111 * Include Requred files and lib.
@@ -116,11 +116,10 @@
116 116 include_once 'includes/admin/Destination/wp-backup-destination-upload-action.php';
117 117 include_once 'includes/class-wpdbbackuplog.php';
118 118 include_once 'includes/admin/filter.php';
119 119 include_once 'includes/admin/newsletter.php';
120 - //include_once 'includes/admin/ajax-create-full-backup.php';
121 120 include_once 'includes/admin/cron-create-full-backup.php';
122 - include_once 'includes/log_generate.php';
121 + include_once 'includes/log_generate.php';
123 122
124 123 }
125 124 /**
126 125 * Installation setting at time of activation.
@@ -125,19 +124,23 @@
125 124 /**
126 125 * Installation setting at time of activation.
127 126 */
128 127 public function installation($flag=1) {
129 - add_option( 'wp_db_backup_destination_FTP', 1 );
130 - add_option( 'wp_db_backup_destination_Email', 1 );
131 - add_option( 'wp_db_backup_destination_s3', 1 );
132 - add_option( 'wp_db_remove_local_backup', 0 );
133 - add_option('wp_db_backup_backup_type','complete');
134 - add_option('wp_db_backup_exclude_dir',"wp-content/backupwordpress-728d36f682-backups|.git|db-backup");
135 - add_option('wp_db_backup_backups_dir','db-backup');
136 - if($flag!=2)
137 - {
138 - add_option( 'wpdbbkp_activation_redirect', true);
139 - }
128 + add_option( 'wp_db_backup_destination_SFTP', 0 ,false);
129 + add_option( 'wp_db_backup_destination_FTP', 0 ,false);
130 + add_option( 'wp_db_backup_destination_Email', 0,false);
131 + add_option( 'wp_db_backup_destination_s3', 0 ,false);
132 + add_option( 'wp_db_remove_local_backup', 0 ,false);
133 + add_option( 'wp_db_remove_on_uninstall', 0 ,false);
134 + add_option('wp_db_backup_backup_type','complete',false);
135 + add_option('wp_db_backup_exclude_dir',"wp-content/backupwordpress-728d36f682-backups|.git|db-backup",false);
136 + add_option('wp_db_backup_backups_dir','db-backup',false);
137 + add_option('bb_last_backup_timestamp',0,false);
138 + add_option('wp_db_backup_sftp_details',null,false);
139 +
140 + if($flag!=2){
141 + add_option( 'wpdbbkp_activation_redirect', true,false);
142 + }
140 143 }
141 144
142 145 /**
143 146 * Logger.