Make the return of is_upload_space_available() more obvious. props georgestephanis. see #22585.

git-svn-id: http://core.svn.wordpress.org/trunk@22861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-11-27 03:42:02 +00:00
parent c33e862097
commit 3287c609a1
1 changed files with 1 additions and 4 deletions

View File

@ -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();
}
/**