WordPress.org

Make WordPress Core

Changeset 19314


Ignore:
Timestamp:
11/16/11 22:02:01 (4 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.