diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index 004b9b8b06..b62e1d0b2d 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -273,22 +273,6 @@ function new_user_email_admin_notice() { } add_action( 'admin_notices', 'new_user_email_admin_notice' ); -/** - * Determines if there is any upload space left in the current blog's quota. - * - * @since 3.0.0 - * @return bool True if space is available, false otherwise. - */ -function is_upload_space_available() { - if ( get_site_option( 'upload_space_check_disabled' ) ) - return true; - - if ( !( $space_allowed = get_upload_space_available() ) ) - return false; - - return true; -} - /** * Check whether a blog has used its allotted upload space. * diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 10fc11f894..7a8ecfb251 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -1987,6 +1987,22 @@ function get_upload_space_available() { return $space_allowed - $space_used; } +/** + * Determines if there is any upload space left in the current blog's quota. + * + * @since 3.0.0 + * @return bool True if space is available, false otherwise. + */ +function is_upload_space_available() { + if ( get_site_option( 'upload_space_check_disabled' ) ) + return true; + + if ( !( $space_allowed = get_upload_space_available() ) ) + return false; + + return true; +} + /** * @since 3.0.0 *