WordPress/wp-admin
Jeremy Felt 3a7b5748eb 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

Built from https://develop.svn.wordpress.org/trunk@30404


git-svn-id: http://core.svn.wordpress.org/trunk@30399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 06:53:22 +00:00
..
css Sync our jQuery UI styles with jQuery UI 1.11.2 CSS. 2014-11-14 19:28:22 +00:00
images
includes Prevent wpmu_delete_blog from removing the wrong uploads directory 2014-11-20 06:53:22 +00:00
js Avoid adjusting the current submenu position when tabbing through the admin menu. 2014-11-16 02:22:21 +00:00
maint
network Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
user Ensure the requires for the admin bootstrap are documented in all wp-admin/user/ files. 2014-11-04 16:32:22 +00:00
about.php
admin-ajax.php Introduce a button on the user profile screen which clears all other sessions, and on the user editing screen which clears all sessions. Only appears when there are applicable sessions which can be cleared. 2014-11-13 15:21:21 +00:00
admin-footer.php
admin-functions.php
admin-header.php
admin-post.php
admin.php
async-upload.php Add some specific JSON responses when there are user permission errors for AJAX file uploads. Replace some usage of wp_json_encode() with wp_send_json_*(). 2014-11-16 05:47:21 +00:00
comment.php
credits.php
custom-background.php Improve keyboard accessibility on Custom Header and Custom Background screen. 2014-11-13 12:00:57 +00:00
custom-header.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
customize.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
edit-comments.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
edit-form-advanced.php Editor: enable spellchecking of the post title field on the Edit Post screen. Props marsjaninzmarsa, fixes #30338. 2014-11-15 01:43:21 +00:00
edit-form-comment.php
edit-link-form.php
edit-tag-form.php
edit-tags.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
edit.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
export.php
freedoms.php
import.php
index.php
install-helper.php
install.php
link-add.php
link-manager.php
link-parse-opml.php
link.php
load-scripts.php
load-styles.php
media-new.php
media-upload.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
media.php
menu-header.php Accessibility: hide admin menu separators from screen readers. 2014-11-19 19:37:21 +00:00
menu.php
moderation.php
ms-admin.php
ms-delete-site.php
ms-edit.php
ms-options.php
ms-sites.php
ms-themes.php
ms-upgrade-network.php
ms-users.php
my-sites.php
nav-menus.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
network.php
options-discussion.php
options-general.php Site Language: Install translations on the fly. 2014-11-13 17:01:24 +00:00
options-head.php
options-media.php
options-permalink.php
options-reading.php
options-writing.php
options.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
plugin-editor.php
plugin-install.php
plugins.php
post-new.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
post.php
press-this.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
profile.php
revision.php
setup-config.php
theme-editor.php
theme-install.php
themes.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
tools.php
update-core.php Background Updates: Introduce support to take advantage of Group Writable (or World Writable) to Core Background updates. 2014-11-19 05:40:23 +00:00
update.php
upgrade-functions.php
upgrade.php
upload.php
user-edit.php Improvements to [30333]: 2014-11-13 15:54:20 +00:00
user-new.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
users.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00
widgets.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:16:22 +00:00