Revert half of [19639]. If the blog_upload_space site_option is '0', restore 50 as a default. see #19538.

git-svn-id: https://develop.svn.wordpress.org/trunk@19652 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-01-03 17:24:51 +00:00
parent 1c75e9a27b
commit 8fd2ce80b6
1 changed files with 1 additions and 1 deletions

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;