Better checking for values for multisite upload limits. see #19538 for trunk.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-12-30 23:10:54 +00:00
parent aa3cf9d286
commit 7931ec33f1
1 changed files with 4 additions and 2 deletions

View File

@ -385,9 +385,11 @@ function get_upload_space_available() {
*/
function get_space_allowed() {
$space_allowed = get_option( 'blog_upload_space' );
if ( $space_allowed === false )
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 = 50;
return $space_allowed;