Jeremy Felt
3223d4a4b3
Prevent wpmu_delete_blog from removing the wrong uploads directory
...
`wp_upload_dir()` includes some logic to fall back to the default site's upload directory if a specific directory for the requested site cannot be found. Because of this, if `wpmu_delete_blog()` is fired twice in a row for the same site, the main site's upload directory could be deleted as well.
This adds some checks in `wpmu_delete_blog()` so that we are confident in the site and it's upload directory's existence before dropping the site. Tests are added for when `ms_files_rewriting` is enabled or disabled.
Fixes #30121
git-svn-id: https://develop.svn.wordpress.org/trunk@30404 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 06:52:07 +00:00
..
2013-08-29 18:39:34 +00:00
2014-06-09 15:58:16 +00:00
2014-07-12 07:08:15 +00:00
2013-08-29 18:39:34 +00:00
2014-11-08 20:36:27 +00:00
2014-11-20 01:51:38 +00:00
2014-11-01 03:23:15 +00:00
2014-11-18 03:37:23 +00:00
2014-10-19 21:23:32 +00:00
2013-11-25 22:49:51 +00:00
2014-11-10 02:04:22 +00:00
2013-08-29 18:39:34 +00:00
2014-11-19 19:31:17 +00:00
2014-11-03 15:54:42 +00:00
2014-11-01 00:53:26 +00:00
2014-10-20 07:31:45 +00:00
2014-10-04 13:11:38 +00:00
2014-09-29 13:27:55 +00:00
2013-08-29 18:39:34 +00:00
2014-11-06 20:16:10 +00:00
2014-10-19 18:53:55 +00:00
2014-11-20 06:52:07 +00:00
2014-10-16 05:06:22 +00:00
2013-12-01 12:47:35 +00:00
2014-11-13 22:03:15 +00:00
2014-11-17 16:16:01 +00:00
2014-11-14 21:52:23 +00:00
2014-11-01 04:00:59 +00:00
2014-11-13 02:18:30 +00:00
2014-11-08 21:55:41 +00:00
2014-02-26 18:43:59 +00:00
2013-08-29 18:39:34 +00:00
2014-08-26 07:38:51 +00:00
2014-05-30 17:31:51 +00:00
2013-08-29 18:39:34 +00:00
2014-11-08 20:36:27 +00:00
2014-06-09 15:58:16 +00:00
2014-11-20 01:51:38 +00:00
2013-08-29 18:39:34 +00:00
2014-10-17 19:16:26 +00:00
2014-11-20 01:45:10 +00:00
2013-10-07 14:17:13 +00:00
2013-08-29 18:39:34 +00:00
2014-09-02 06:49:11 +00:00
2014-10-28 18:34:16 +00:00
2013-11-25 22:49:51 +00:00
2014-07-01 18:00:50 +00:00
2013-09-12 17:47:40 +00:00
2014-11-20 01:47:30 +00:00
2013-09-12 04:46:49 +00:00
2014-11-01 00:48:32 +00:00
2014-11-01 02:38:19 +00:00
2014-10-16 05:06:22 +00:00
2014-11-14 21:33:50 +00:00
2014-10-29 02:31:37 +00:00
2014-07-03 01:42:57 +00:00
2014-11-08 22:50:30 +00:00
2014-11-03 18:48:42 +00:00
2014-11-14 21:26:48 +00:00
2014-10-17 22:14:49 +00:00
2014-07-12 07:08:15 +00:00
2014-05-29 03:58:41 +00:00
2014-10-17 03:01:21 +00:00
2014-08-01 20:35:25 +00:00
2013-08-29 18:39:34 +00:00