Make WordPress Core


Ignore:
Timestamp:
10/10/2015 11:14:11 PM (9 years ago)
Author:
jeremyfelt
Message:

MS: Allow for a blog_upload_space setting of 0 to restrict uploads.

Previously, an value matching empty() would have been bypassed in favor of the default setting for 100MB.

Related #19538, r19639, r19652, where we saw the bug, fixed the bug, and then unfixed the bug so that it was not a surprise in a point release.

See #34037.

File:
1 edited

Legend:

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

    r34916 r35016  
    22972297        $space_allowed = get_site_option( 'blog_upload_space' );
    22982298
    2299     if ( empty( $space_allowed ) || ! is_numeric( $space_allowed ) )
     2299    if ( ! is_numeric( $space_allowed ) )
    23002300        $space_allowed = 100;
    23012301
Note: See TracChangeset for help on using the changeset viewer.