Changeset 35016
- Timestamp:
- 10/10/2015 11:14:11 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r34916 r35016 2297 2297 $space_allowed = get_site_option( 'blog_upload_space' ); 2298 2298 2299 if ( empty( $space_allowed ) ||! is_numeric( $space_allowed ) )2299 if ( ! is_numeric( $space_allowed ) ) 2300 2300 $space_allowed = 100; 2301 2301 -
trunk/tests/phpunit/tests/multisite/getSpaceAllowed.php
r34900 r35016 95 95 array( 'NAN', 'NAN', 100 ), 96 96 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 ), 101 101 ); 102 102 } -
trunk/tests/phpunit/tests/multisite/isUploadSpaceAvailable.php
r34899 r35016 103 103 remove_filter( 'pre_get_space_used', array( $this, '_filter_space_used_small' ) ); 104 104 105 $this->assert True( $available );105 $this->assertFalse( $available ); 106 106 } 107 107
Note: See TracChangeset
for help on using the changeset viewer.