mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Revert half of [19639]. If the blog_upload_space site_option is '0', restore 50 as a default. see #19538.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eeb71b5499
commit
33f5a73a63
@ -389,7 +389,7 @@ function get_space_allowed() {
|
||||
if ( ! is_numeric( $space_allowed ) )
|
||||
$space_allowed = get_site_option( 'blog_upload_space' );
|
||||
|
||||
if ( ! is_numeric( $space_allowed ) )
|
||||
if ( empty( $space_allowed ) || ! is_numeric( $space_allowed ) )
|
||||
$space_allowed = 50;
|
||||
|
||||
return $space_allowed;
|
||||
|
Loading…
Reference in New Issue
Block a user