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

git-svn-id: https://develop.svn.wordpress.org/trunk@19639 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-12-30 23:10:54 +00:00
parent 0e4935d078
commit 3350723c21
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;