Make WordPress Core


Ignore:
Timestamp:
10/10/2015 11:17:01 PM (11 years ago)
Author:
jeremyfelt
Message:

MS: Handle the possibility of 0 when checking a user's upload quota.

Upload space of 0 is now more possible via r35016 and should be respected rather than modified to a default of 10MB.

Fixes #34037.

File:
1 edited

Legend:

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

    r35013 r35017  
    418418
    419419        $space_allowed = get_space_allowed();
    420         if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
     420        if ( ! is_numeric( $space_allowed ) ) {
    421421                $space_allowed = 10; // Default space allowed is 10 MB
    422 
     422        }
    423423        $space_used = get_space_used();
    424424
Note: See TracChangeset for help on using the changeset viewer.