mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
MS: Allow for a blog_upload_space setting of 0 to restrict uploads.
Previously, an value matching `empty()` would have been bypassed in favor of the default setting for 100MB. Related #19538, r19639, r19652, where we saw the bug, fixed the bug, and then unfixed the bug so that it was not a surprise in a point release. See #34037. git-svn-id: https://develop.svn.wordpress.org/trunk@35016 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2296,7 +2296,7 @@ function get_space_allowed() {
|
||||
if ( ! is_numeric( $space_allowed ) )
|
||||
$space_allowed = get_site_option( 'blog_upload_space' );
|
||||
|
||||
if ( empty( $space_allowed ) || ! is_numeric( $space_allowed ) )
|
||||
if ( ! is_numeric( $space_allowed ) )
|
||||
$space_allowed = 100;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user