From f7b3d1a85424d273a01cfba84de1110e5c0b8bda Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 27 Nov 2012 03:42:02 +0000 Subject: [PATCH] Make the return of is_upload_space_available() more obvious. props georgestephanis. see #22585. git-svn-id: https://develop.svn.wordpress.org/trunk@22861 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/ms-functions.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 7a8ecfb251..69c293c7e7 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -1997,10 +1997,7 @@ 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; + return (bool) get_upload_space_available(); } /**