diff --git a/wp-content/plugins/wp-db-backup.php b/wp-content/plugins/wp-db-backup.php index c5a9e3b9d1..8fb78c6ae9 100644 --- a/wp-content/plugins/wp-db-backup.php +++ b/wp-content/plugins/wp-db-backup.php @@ -16,7 +16,10 @@ Many thanks to Owen (http://asymptomatic.net/wp/) for his patch // CHANGE THIS IF YOU WANT TO USE A // DIFFERENT BACKUP LOCATION -define('WP_BACKUP_DIR', 'wp-content/backup'); + +$rand = substr( md5( md5( DB_PASSWORD ) ), -5 ); + +define('WP_BACKUP_DIR', 'wp-content/backup-' . $rand); define('ROWS_PER_SEGMENT', 100); @@ -209,6 +212,7 @@ class wpdbBackup { nextStep(); //--> + '; } @@ -726,14 +730,28 @@ class wpdbBackup { if ('' != $feedback) { echo $feedback; } - - if (! is_dir(ABSPATH . $this->backup_dir)) { - echo '
' . __('WARNING: Your backup directory does not exist!', 'wp-db-backup') . '
' . ABSPATH . $this->backup_dir . "
' . __('WARNING: Your backup directory is NOT writable!', 'wp-db-backup') . '
' . ABSPATH . $this->backup_dir . "
' . __('WARNING: Your wp-content directory is NOT writable! We can not create the backup directory.', 'wp-db-backup') . '
' . ABSPATH . "
' . __('WARNING: Your backup directory is NOT writable! We can not create the backup directory.', 'wp-db-backup') . '
' . ABSPATH . "