Changeset 22840
- Timestamp:
- 11/26/2012 02:42:43 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r22497 r22840 273 273 } 274 274 add_action( 'admin_notices', 'new_user_email_admin_notice' ); 275 276 /**277 * Determines if there is any upload space left in the current blog's quota.278 *279 * @since 3.0.0280 * @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 275 292 276 /** -
trunk/wp-includes/ms-functions.php
r22497 r22840 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 *
Note: See TracChangeset
for help on using the changeset viewer.