Make WordPress Core

Ticket #22585: 22585.diff

File 22585.diff, 1.4 KB (added by scribu, 11 years ago)
  • wp-admin/includes/ms.php

    diff --git wp-admin/includes/ms.php wp-admin/includes/ms.php
    index 004b9b8..b62e1d0 100644
    function new_user_email_admin_notice() { 
    274274add_action( 'admin_notices', 'new_user_email_admin_notice' );
    275275
    276276/**
    277  * Determines if there is any upload space left in the current blog's quota.
    278  *
    279  * @since 3.0.0
    280  * @return bool True if space is available, false otherwise.
    281  */
    282 function is_upload_space_available() {
    283         if ( get_site_option( 'upload_space_check_disabled' ) )
    284                 return true;
    285 
    286         if ( !( $space_allowed = get_upload_space_available() ) )
    287                 return false;
    288 
    289         return true;
    290 }
    291 
    292 /**
    293277 * Check whether a blog has used its allotted upload space.
    294278 *
    295279 * @since MU
  • wp-includes/ms-functions.php

    diff --git wp-includes/ms-functions.php wp-includes/ms-functions.php
    index 10fc11f..7a8ecfb 100644
    function get_upload_space_available() { 
    19881988}
    19891989
    19901990/**
     1991 * Determines if there is any upload space left in the current blog's quota.
     1992 *
     1993 * @since 3.0.0
     1994 * @return bool True if space is available, false otherwise.
     1995 */
     1996function is_upload_space_available() {
     1997        if ( get_site_option( 'upload_space_check_disabled' ) )
     1998                return true;
     1999
     2000        if ( !( $space_allowed = get_upload_space_available() ) )
     2001                return false;
     2002
     2003        return true;
     2004}
     2005
     2006/**
    19912007 * @since 3.0.0
    19922008 *
    19932009 * @return int of upload size limit in bytes