diff --git wp-admin/includes/ms.php wp-admin/includes/ms.php
index 004b9b8..b62e1d0 100644
|
|
function new_user_email_admin_notice() { |
274 | 274 | add_action( 'admin_notices', 'new_user_email_admin_notice' ); |
275 | 275 | |
276 | 276 | /** |
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 | | /** |
293 | 277 | * Check whether a blog has used its allotted upload space. |
294 | 278 | * |
295 | 279 | * @since MU |
diff --git wp-includes/ms-functions.php wp-includes/ms-functions.php
index 10fc11f..7a8ecfb 100644
|
|
function get_upload_space_available() { |
1988 | 1988 | } |
1989 | 1989 | |
1990 | 1990 | /** |
| 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 | */ |
| 1996 | function 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 | /** |
1991 | 2007 | * @since 3.0.0 |
1992 | 2008 | * |
1993 | 2009 | * @return int of upload size limit in bytes |