mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 06:42:56 +02:00
Return false if upload_space_check_disabled is true in upload_is_user_over_quota(). Props SergeyBiryukov. fixes #14121
git-svn-id: http://svn.automattic.com/wordpress/trunk@16299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0d489ee102
commit
0a1fa29fe2
@ -1190,7 +1190,7 @@ function recurse_dirsize( $directory ) {
|
||||
|
||||
function upload_is_user_over_quota( $echo = true ) {
|
||||
if ( get_site_option( 'upload_space_check_disabled' ) )
|
||||
return true;
|
||||
return false;
|
||||
|
||||
$spaceAllowed = get_space_allowed();
|
||||
if ( empty( $spaceAllowed ) || !is_numeric( $spaceAllowed ) )
|
||||
|
Loading…
Reference in New Issue
Block a user