WordPress.org

Make WordPress Core

Ticket #21181: 21181-1.diff

File 21181-1.diff, 660 bytes (added by jkudish, 7 years ago)
  • wp-admin/includes/ms.php

     
    279279 * @return bool True if space is available, false otherwise.
    280280 */
    281281function is_upload_space_available() {
    282         if ( get_site_option( 'upload_space_check_disabled' ) )
    283                 return true;
     282
     283        $is_upload_space_available = true;
    284284
    285285        if ( !( $space_allowed = get_upload_space_available() ) )
    286                 return false;
     286                $is_upload_space_available = false;
    287287
    288         return true;
     288        return apply_filters( 'is_upload_space_available', $is_upload_space_available );
    289289}
    290290
    291291/**