Make WordPress Core


Ignore:
Timestamp:
10/10/2015 11:14:11 PM (11 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/tests/phpunit/tests/multisite/getSpaceAllowed.php

    r34900 r35016  
    9595                        array( 'NAN', 'NAN', 100 ),
    9696
    97                         // These are likely unexpected.
    98                         array( 0,     666,   100 ),
    99                         array( false, 0,     100 ),
    100                         array( 'NAN', 0,     100 ),
     97                        // These effectively disable uploads.
     98                        array( 0,     666,   0 ),
     99                        array( false, 0,     0 ),
     100                        array( 'NAN', 0,     0 ),
    101101                );
    102102        }
Note: See TracChangeset for help on using the changeset viewer.