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.

Built from https://develop.svn.wordpress.org/trunk@35016


git-svn-id: http://core.svn.wordpress.org/trunk@34981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2015-10-10 23:15:26 +00:00
parent 6b449abadc
commit 49ce208880
2 changed files with 2 additions and 2 deletions

View File

@ -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;
/**

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-35015';
$wp_version = '4.4-alpha-35016';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.