Return false if upload_space_check_disabled is true in upload_is_user_over_quota(). Props SergeyBiryukov. fixes #14121
git-svn-id: https://develop.svn.wordpress.org/trunk@16299 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b8ebc2cecb
commit
d0f30f75e5
|
@ -1190,7 +1190,7 @@ function recurse_dirsize( $directory ) {
|
||||||
|
|
||||||
function upload_is_user_over_quota( $echo = true ) {
|
function upload_is_user_over_quota( $echo = true ) {
|
||||||
if ( get_site_option( 'upload_space_check_disabled' ) )
|
if ( get_site_option( 'upload_space_check_disabled' ) )
|
||||||
return true;
|
return false;
|
||||||
|
|
||||||
$spaceAllowed = get_space_allowed();
|
$spaceAllowed = get_space_allowed();
|
||||||
if ( empty( $spaceAllowed ) || !is_numeric( $spaceAllowed ) )
|
if ( empty( $spaceAllowed ) || !is_numeric( $spaceAllowed ) )
|
||||||
|
|
Loading…
Reference in New Issue