Make WordPress Core

Changeset 34606


Ignore:
Timestamp:
09/26/2015 08:58:22 PM (9 years ago)
Author:
jorbin
Message:

Revert change from true to false in multisite upload test

This change was introduced in [34601]. 0 is a special snowflake. The code treats it as if it should fall back to the default, rather than respecting 0 as 0. Essentially, 0 means 100. WAT? This has been discussed previusly in https://core.trac.wordpress.org/ticket/19538#comment:10. This test should return True right now, but the behavior should be discussed and in the future 0 may mean 0.

See #34037
Props jorbin, boonebgorges

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/multisite/site.php

    r34602 r34606  
    11081108        update_site_option( 'upload_space_check_disabled', false );
    11091109        update_site_option( 'blog_upload_space', 0 );
    1110         $this->assertFalse( is_upload_space_available() );
     1110        $this->assertTrue( is_upload_space_available() );
    11111111    }
    11121112
Note: See TracChangeset for help on using the changeset viewer.