mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01: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. 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:
parent
6b449abadc
commit
49ce208880
@ -2296,7 +2296,7 @@ function get_space_allowed() {
|
|||||||
if ( ! is_numeric( $space_allowed ) )
|
if ( ! is_numeric( $space_allowed ) )
|
||||||
$space_allowed = get_site_option( 'blog_upload_space' );
|
$space_allowed = get_site_option( 'blog_upload_space' );
|
||||||
|
|
||||||
if ( empty( $space_allowed ) || ! is_numeric( $space_allowed ) )
|
if ( ! is_numeric( $space_allowed ) )
|
||||||
$space_allowed = 100;
|
$space_allowed = 100;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user