[wp-trac] [WordPress Trac] #34037: Setting blog upload limit to 0 doesn't work
WordPress Trac
noreply at wordpress.org
Wed Oct 7 06:42:18 UTC 2015
#34037: Setting blog upload limit to 0 doesn't work
--------------------------+----------------------------------------
Reporter: boonebgorges | Owner: jeremyfelt
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Media | Version:
Severity: normal | Resolution:
Keywords: | Focuses: administration, multisite
--------------------------+----------------------------------------
Comment (by jeremyfelt):
Once we fix `get_space_allowed()` so that 0 is a valid return, we then run
into `upload_is_user_over_quota()`:
{{{
$space_allowed = get_space_allowed();
if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
$space_allowed = 10; // Default space allowed is 10 MB
}}}
Which could then calculate slightly wrong. More tests needed!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34037#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list