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:
nacin 2012-01-03 17:24:51 +00:00
parent eeb71b5499
commit 33f5a73a63

View File

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