Only fall back to get_site_option() if blog_upload_space value is === false. Zero should not fall back. fixes #18119. props jakub.tyrcha

git-svn-id: https://develop.svn.wordpress.org/trunk@19314 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2011-11-16 22:02:01 +00:00
parent 9ce7a82a23
commit 9b139832b4

View File

@ -385,7 +385,7 @@ function get_upload_space_available() {
*/ */
function get_space_allowed() { function get_space_allowed() {
$space_allowed = get_option( 'blog_upload_space' ); $space_allowed = get_option( 'blog_upload_space' );
if ( $space_allowed == false ) if ( $space_allowed === false )
$space_allowed = get_site_option( 'blog_upload_space' ); $space_allowed = get_site_option( 'blog_upload_space' );
if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) ) if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
$space_allowed = 50; $space_allowed = 50;