mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user