humanmade/backupwordpress — pull request #612 by willmot (2014-12-01 06:04:55+00:00)
Title: Introduce a HMBKP_Path class to replace hmbkp_path();

`HMBKP_Path` handles everything related to finding/creating the backup path, keeping it clean and protecting it.

Replaces all the logic in `hmbkp_path()` & `hmbkp_cleanup()` with new atomic methods and introduces unit tests.

It also improves some of the core functionality.

- No longer relies on storing the backup path and default backup path in the options table.
- Instead it simply reads `WP_CONTENT` dir and uploads and looks for a backup directory directly.
- No more duplicate directories
- No more losing your backups directory if you lose the `hmbkp_path` option
- handles merging multiple backup directories