Make WordPress Core


Ignore:
Timestamp:
11/16/2011 10:02:01 PM (13 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r19038 r19314  
    386386function get_space_allowed() {
    387387    $space_allowed = get_option( 'blog_upload_space' );
    388     if ( $space_allowed == false )
     388    if ( $space_allowed === false )
    389389        $space_allowed = get_site_option( 'blog_upload_space' );
    390390    if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
Note: See TracChangeset for help on using the changeset viewer.