[wp-trac] [WordPress Trac] #34037: Setting blog upload limit to 0 doesn't work
WordPress Trac
noreply at wordpress.org
Sat Sep 26 20:55:23 UTC 2015
#34037: Setting blog upload limit to 0 doesn't work
---------------------------------------+-----------------
Reporter: boonebgorges | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Media | Version:
Severity: normal | Keywords:
Focuses: administration, multisite |
---------------------------------------+-----------------
There's a check in `get_space_allowed()` that looks like this:
{{{
$space_allowed = get_option( 'blog_upload_space' );
// ...
if ( empty( $space_allowed ) ... ) {
$space_allowed = 100;
}
}}}
This means that setting 'blog_upload_space' to 0 can never work. This
seems to be a bug: I'd expect that setting it to 0 would mean that uploads
were effectively disabled for that site.
This behavior was previously noted
https://core.trac.wordpress.org/ticket/19538#comment:10 and changed
[19639], but was later reverted [19652] to avoid breaking existing
behavior in a minor release.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34037>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list