mirror of
git://develop.git.wordpress.org/
synced 2025-03-24 05:49:49 +01:00
A new function `wp_filesize()` was added with [52837]. The function lived in the `wp-admin/includes/file.php` file. However, this admin specific function is not loaded into memory when hitting `media/edit` endpoint. The result was a `500` Internal Server Error. Why? The function is invoked with that endpoint, but the function does not exist in memory. This commit relocates the new function to the `wp-includes/functions.php` file. In doing so, the function is available for both the frontend and backend. Follow-up to [52837]. Props talldanwp, spacedmonkey, costdev, antonvlasenko. Fixes #55367. git-svn-id: https://develop.svn.wordpress.org/trunk@52932 602fd350-edb4-49c9-b593-d223f7449a82