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:
parent
c33e862097
commit
3287c609a1
|
@ -1997,10 +1997,7 @@ function is_upload_space_available() {
|
||||||
if ( get_site_option( 'upload_space_check_disabled' ) )
|
if ( get_site_option( 'upload_space_check_disabled' ) )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if ( !( $space_allowed = get_upload_space_available() ) )
|
return (bool) get_upload_space_available();
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue