Make WordPress Core

Changeset 19639


Ignore:
Timestamp:
12/30/2011 11:10:54 PM (12 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

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

    r19596 r19639  
    386386function get_space_allowed() {
    387387    $space_allowed = get_option( 'blog_upload_space' );
    388     if ( $space_allowed === false )
     388
     389    if ( ! is_numeric( $space_allowed ) )
    389390        $space_allowed = get_site_option( 'blog_upload_space' );
    390     if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
     391
     392    if ( ! is_numeric( $space_allowed ) )
    391393        $space_allowed = 50;
    392394
Note: See TracChangeset for help on using the changeset viewer.