Changeset 35017
- Timestamp:
- 10/10/2015 11:17:01 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r35013 r35017 418 418 419 419 $space_allowed = get_space_allowed(); 420 if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )420 if ( ! is_numeric( $space_allowed ) ) { 421 421 $space_allowed = 10; // Default space allowed is 10 MB 422 422 } 423 423 $space_used = get_space_used(); 424 424 -
trunk/tests/phpunit/tests/multisite/uploadIsUserOverQuota.php
r34901 r35017 28 28 } 29 29 30 /**31 * In this scenario, 10 is set as the spaced allowed when 0 is returned32 * by `get_space_allowed()` inside `upload_is_user_over_quota()`.33 *34 * This is likely not expected behavior.35 */36 30 public function test_upload_is_user_over_quota_allowed_0_used_5() { 37 31 add_filter( 'get_space_allowed', '__return_zero' ); … … 41 35 remove_filter( 'pre_get_space_used', array( $this, '_filter_space_5' ) ); 42 36 43 $this->assert False( $result );37 $this->assertTrue( $result ); 44 38 } 45 39
Note: See TracChangeset
for help on using the changeset viewer.