Files
wordpress/wp-includes
johnjamesjacoby 5f14fc0a16 Networks and Sites: check if the BLOGUPLOADDIR constant is defined before using it.
This change prevents a fatal PHP error from occurring when `ms-files.php` is accessed without legacy multisite file-handling support being configured.

Instead of the fatal error, these same requests will new return a header status `500` along with a `die()` message "500 - Directory not configured." This differs from the existing `404` statuses to help indicate to site owners this fallback is not working as intended.

Props danielpw, dd32, jakeparis, johnjamesjacoby, spacedmonkey, saurabh.dhariwal, sukhendu2002, realloc.

Fixes #63104.
Built from https://develop.svn.wordpress.org/trunk@60956


git-svn-id: http://core.svn.wordpress.org/trunk@60292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-17 17:14:32 +00:00
..